Final answer:
You have 23 nickels and 6 dimes.
Step-by-step explanation:
If all your coins were nickels, you would have had 145 cents. This means that the difference between the total amount of nickels and dimes you currently have is 175 - 145 = 30 cents. Now, let's assume that you have x nickels and y dimes. Since a nickel is worth 5 cents and a dime is worth 10 cents, we can set up the following equation:
5x + 10y = 175
Next, we can use the information that all the coins are nickels to set up another equation:
5(x + y) = 145
Simplifying this equation, we get:
x + y = 29
Now we have a system of equations that we can solve using substitution or elimination. Let's use substitution:
x = 29 - y
Plugging this value back into the first equation, we have:
5(29 - y) + 10y = 175
Expanding and simplifying, we get:
145 - 5y + 10y = 175
Combining like terms, we have:
5y = 30
Dividing both sides by 5, we get:
y = 6
Plugging this value back into x = 29 - y, we have:
x = 29 - 6 = 23
Therefore, you have 23 nickels and 6 dimes.