Question 1070263: a vending machine that only takes dimes and quarters contains 40 coins, with a total value of $5.95. How many of each coins are there? Answer by ikleyn(52771) (Show Source):
Let Q be the number of quarters; Then the number of dimes is (40-Q).
Dimes contribute 10*(40-Q) cents to the total.
Quarters contribute 25Q cents.
The equation for the total is
10*(40-Q) + 25Q = 595 cents, or
400 - 10Q + 25Q = 595, or
15Q = 595-400 = 195, which gives Q = = 13.
Answer. 13 quarters and 40 - 13 = 27 dimes.
Check. 27*10 + 13*25 = 595 cents. Correct.