x nickels
x dimes
and the rest (500-2x) coins are quarters.
Keeping it in mind, you write the total money equation
    5x + 10x + 25(500-2x) = 7250  cents.
Simplify and find x
    5x + 10x - 50x + 25*500 = 7250
    25*500 - 7250 = 50x - 5x - 10x
    52500 = 35x
      x =   = 150.
ANSWER.  The number of quarters is  500 - 2*150 = 200.