It is 5:12 because We already know that 7 pens are blue. To find the number of red pens we must subtract 12 - 7 and get 5 as the number of red pens. Now knowing the no. of red pens and total number we can say the ratio of red pens to total no. is 5:12