A vending machine had to be programmed to accept any combination of nickels, dimes, and quarters that totals 40 cents. How many different combinations are possible?

1 answer

just list them:
q+d+n=40
q+3n=40
...