Xavior took a total of 124 quarters and dimes to trade in for cash at the bank. He got exactly $25 back. How many quarters did he have?

A. 40

B. 62

C. 84

D. 100

Let q be the number of quarters and d be the number of dimes.

q + d = 124
0.25q + 0.10d = 25

From the first equation, we can solve for d:
d = 124 - q

Substitute d = 124 - q into the second equation:
0.25q + 0.10(124 - q) = 25
0.25q + 12.4 - 0.10q = 25
0.15q = 12.6
q = 84

Therefore, Xavior had 84 quarters.

C. 84