Let X = the number of dimes.
Then X + 7 = the number of nickels
Let Y = the number of quarters
So we have two variables. That means that we need two equations to solve.
First, we know that the total number of coins = 40.
So X + X + 7 + y = 40
Combining like terms--> 2X +7 + y = 40
Solving for y --> y = 40 - 2X - 7
y = 33 - 2X
Second, the value of all coins = $4.05 which is 405 cents, so we won't have to work with decimals.
The value of dimes = 10X cents (there are 10 cents in a dime)
The value of nickels = 5(X + 7) = 5X + 35 (there are 5 cents in a nickel
The value of quarters = 25y (there are 25 cents in a quarter
So the total value equals the sum of all three individual values: 405 = 10X + 5X + 35 + 25y
Substitute 33 - 2X for y in this equation --> 405 = 10X + 5X +35 + 25(33 - 2x)
405 = 15X + 35 + 825 - 50X
405 = -35X + 860
-455 = -35X
X = 13 which is the number of dimes. But the question asks for the number of quarters which is y
y = 33 -2x
y = 33 - 2(13)
y = 33 - 26
y = 7 <-- Answer!
Figure out the number of nickels and then check the answers by making sure that the total number of coins is 40 and the total value is 405 cents. I could have made a mistake so you want to check up on me and make sure that I'm correct.