Let the present age of the father be 'x' and that of the son be 'y'. Then x/y = 8/3∴ 3x = 8y Further, x + 12/y + 12 = 2/1 ∴ x + 12 = 2y + 24 ∴ x - 2y = 12 ......(ii)From eqn (i) and (ii), x = 48, y = 18 ∴ sum = 66 yrs.
Let the price of a pen be 'x' and that of pencil be 'y' Then 87x + 29y = 783Multiplying eqn (i) by 30/29 we get (87x) x 30/29 + (29y) 30/29 = 783 x 30/29∴ 90x + 30y = 810