12 years ago , p was half of q in age . if the ratio of their present ages is 3 : 4 , what will be the total of their present ages
explanation : let the present age of p and q be 3 x and 4 x respectively . twelve years ago , p was half of q in age = > 2 ( 3 x – 12 ) = ( 4 x – 12 ) = > 6 x – 24 = 4 x – 12 = > 2 x = 12 = > x = 6 7 x = 7 * 6 = 42 answer : option c
multiply(add(3, 4), divide(subtract(multiply(12, const_2), subtract(multiply(12, const_2), 12)), subtract(multiply(3, const_2), 4)))