You can put this solution on YOUR website! In solving coin problems, you have to keep track of the number of coins and the value of the coins.
n = number of nickels
5n = value of the nickels in cents
d = number of dimes
10d = value of the dimes in cents
.
We are told n+d = 23 coins.
We are told that 5n + 10d = 235 cents.
.
We can solve these two equations in several ways. An obvious approach is to set n = 23-d and then substitute.
.
5(23-d) + 10d = 235
115 - 5d + 10d = 235
5d = 120
d = 24
.
n + d = 23
n = -1
.
Checking our values:
5n = 5*-1 = -5 cents
24d = 10*24 = 240 cents
Adding: 235 cents.
.
But this is a nonsensical answer. You cannot have -1 nickels.
.
Using a 'brute force' approach, it is easy to see that the maximum value of 23 coins occurs with 22 dimes and 1 nickel...and it is 225 cents ($2.25), which is less than the stated amount.
.