Let the number of dimes = x
And the number of nickels = y
There are 8 more dimes than nickels.
So, x = y + 8
The jar of nickels and dimes contains $5.45
So, the total amount of money = 545 cents
dime = 10 cents
nickel = 5 cents
so, 10x + 5y = 545
so, we have the following system of equations:
Substitute with x from equation (1) into equation (2) then solve for y
So, the number of dimes = 39
The number of nickels = 31