The difference in price is 2% * 2000 = $<<2*.01*2000=40>>40

So, the price of John’s phone is 2000+40 = $<<2000+40=2040>>2040

# Answer

2040
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Alan bought a $2000 phone online. John bought it 2% more expensive in a local store. How much did John spend on his phone?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
2040
Alan bought a $2000 phone online. John bought it 2% more expensive in a local store. How much did John spend on his phone?
train