How many different combinations can you make to get 50 cents if you only have 6 quarters, 5 dimes, 4 nickels, and 10 pennies?
There are 12 different combinations that work.
p n d q
1 = 10 4 2 0 2 = 10 2 3 0 3 = 5 3 3 0 4 = 0 4 3 0 5 = 10 0 4 0 6 = 5 1 4 0 7 = 0 2 4 0 8 = 0 0 5 0 9 = 10 3 0 1 10 = 5 4 0 1 11 = 10 1 1 1 12 = 5 2 1 1 13 = 0 3 1 1 14 = 5 0 2 1 15 = 0 1 2 1 16 = 0 0 0 2