Let the age of the son be x and the age of the father be y.Therefore, x + y = 65 ..........(i)or, 2 x (x + 5) = (y + 5)or, 2x + 10 = y + 5or, 2x - y = 5 ...................(ii)From equations (i) and (ii), x = 20, y = 45
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