Explanation:
If D is number of dimes and Q is number of quarters:
D + Q = 21
10D + 25Q = 420
Solve the system of equations through either substitution or elimination.
10D + 25(21 - D) = 420
10D + 525 - 25D = 420
105 = 15D
D = 7
Q = 14
There are 7 dimes and 14 quarters.