Let there are x number of nickels and y number of quarters.
Total coins are 52, so first equation is,

The worth of nckel is 0.05$ and worth of quarter is 0.25$.
The worth for the nickels and quarter is $9. So the second equation is,

Substitute the value of y in the equation to obtain the value of x.

Substitute 20 for x in the equation y=52-x to obatin the value of y.

So number of nickels is 20 and number of quarters is 32.