Let number of dimes be D, and number of quarters, Q
Then: .1D + .25Q = 5 ----- eq (i)
Also, D = Q + 8 ---------- eq (ii)
.1(Q + 8) + .25Q = 5 ------- Substituting Q + 8 for D in eq (i)
.1Q + .8 + .25Q = 5
.1Q + .25Q = 5 - .8
.35Q = 4.2
Q, or number of quarters =, or
You should be able to find D: the number of dimes.