q=d-10, n=q-5, Solve the first for d and you have:
d=q+10 and n=q-5
.25q+.1d+.05n=4.75, then using d and n from above, this becomes:
.25q+.1(q+10)+.05(q-5)=4.75 perform indicated multiplications
.25q+.1q+1+.05q-.25=4.75 combine like terms
.4q+.75=4.75 subtract .75 from both sides
.4q=4 divide both sides by .4
q=10, since d=q+10 and n=q-5
d=20, n=5
So you have 10 quarters, 20 dimes, and 5 nickels.