How many methods are possible to get a total amount of 10 rupee in 18 coins. A lot of 25 paisa, 50 paisa and 1 rupee coins are available. Use of every type of coin is not compulsory.
x(0.25) + y(0.50) + (18-x-y)(1) = 10
On solving this equation, we get 3x + 2y = 32
Possible solutions are
(0,16,2), (4,10,4), (8,4,6), (2,13,3), (6,7,5), (10,1,7)