A purse contains only pennies, nickels, dimes, and quarters. The average value of its coins is $15$ cents. With one more dime it would be $14$ cents. How many nickels are in the purse?
$15n+10=14(n+1)$, so $n=4$ coins worth $60$ cents.
Four coins from $1,5,10,25$ summing to $60$: without quarters they total at most $40$; with one quarter the other three make $35$, but three coins from $1,5,10$ total at most $30$; three quarters are too much. With two quarters the other two make $10$, which forces $5+5$. So only $25,25,5,5$.