A jar of coins has only nickels and quarters, which are worth a total of $3.25. There are 5 fewer quarters than nickels. How many quarters and nickels are in the jar?

1 answer

5n + 25q = 325
q = n-5

now just plug in q and solve for n.