We have a set of coins with values 1, 2, 5, and 10, and banknotes with values 5 and 10. We want to pay a bill of 15 using a combination of these coins and banknotes. How many ways can we pay the bill?
I attempted to formulate the problem as follows:
$$x_1+2x_2+5x_3+10x_4=15,\quad x_i\ge0$$
and then proceeded to count the solutions manually. However, this method is time-consuming Can you provide any suggestions or tips on how to approach this problem more efficiently