In the question, it is given that
Ryan has some nickels and dimes. Altogether, he has 34 coins that total $2.60.
Let the number of nickels be n and number of dimes be d.
So we have

Multiplying first equation by -0.05 and add it to second equation, we will get

So number of Dimes are 18 and number of nickels are
