<human>:  John's piggy bank contains quarters, dimes, and nickels. He has three more dimes than quarters and 6 fewer nickels than quarters. If he has 63 coins, how many quarters does John have?
<bot>: Define a variable ** Let x represent the number of quarters John has
How many nickels does John have? ** Nickels: x-6
How many dimes does John have? ** Dimes: x+3
Write an equation ** Total:x+x-6+x+3=63
Combine like terms ** 3x-3=63
Add 3 to both sides ** 3x=66
Divide by 3 ** x=<<22=22>>22 quarters
#### 22