How do I setup this problem?? I need some help please!!

Answer: 7 nickels and 10 dimes
Step-by-step explanation:let
n = amount of nickels
d = amount of dimes
n + d=16---(1)
For the second equation, we know that a dime is worth 10¢ and a nickel is 5¢, so it should be:
5n + d =125
(n+2d)=25
n+2d=25----(2)
Equation (1) - (2)
n+d-n-2d=16-25
d=9-----(3)
Substituting value of d from equation (3) to (1)
n+9=16
n=7