There are several ways you can combine coins to reach a target amount:
TARGET: 45¢ QUARTERS 1 1 1 0 DIMES 2 1 0 0 NICKLES 0 2 4 8 PENNIES 0 0 0 5
TARGET: 26¢ QUARTERS 1 0 0 0 DIMES 0 2 2 0 NICKLES 0 1 0 5 PENNIES 1 1 6 1