make a list of possible coins to give you 38 cents
e.g.
Q D N P
1 1 0 3
1 0 2 3
...
0 0 7 3
...
then pick the one where the sum of coins is 8
Eight U.S. coins are worth a total of 38 cents. How many of the coins are dimes?
1 answer