Let 'N' is the smallest number which divided by 13 and 16 leaves respective remainders of 2 and 5.Required number = (LCM of 13 and 16) - (common difference of divisors and remainders) = (208) - (11) = 197.
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