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? Let's think step by step and output the final answer after "####".
user
Let x represent the number of quarters John has
Nickels: x-6
Dimes: x+3
Total:x+x-6+x+3=63
3x-3=63
3x=66
x=<<22=22>>22 quarters
#### 22
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?
train