Ways to make an amount of money from a number of coins