d + q = 50
10d + 25q = 1025
Multiply the first equation by 10.
10(d + q = 50) --> 10d + 10q = 500
We combine this with the second equation
10d + 25q = 1025
10d + 10q = 500
--------subtract--------
15q = 525 iff
q = 35
Plug in q = 35 into any of the original equations,
d + q = 50
d + 35 = 50 iff
d = 15
There are 15 dimes, and 35 quarters.