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
Let the number be 10x + y.∴ x + y = 12 ...........(i)10x + y - (10x + x) = 18or 10x + y - 10y - x = 18or 9x - 9y = 18∴ x - y = 2From (i) and (ii), x = 7, y = 5∴ Number = 75