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?

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

We know that:
1. q + d = 124 (total number of coins)
2. 0.25q + 0.10d = 25 (total value in dollars)

From equation 1, we can express d in terms of q:
d = 124 - q

Substitute d = 124 - q into equation 2:
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.