Question 990933
n = number of nickels
d = number of dimes


n = 3d
5n + 10d = 125


Substitute the first equation into the second.


5(3d) + 10d = 125
25d = 125
d = 5


Erik has 5 dimes and 15 nickels.