The normal price of the lessons would be 20*40=$<<20*40=800>>800

The discount saves him 800*.25=$<<800*.25=200>>200

So the lessons cost him 800-200=$<<800-200=600>>600

That means everything costs 500+600=$<<500+600=1100>>1100

# Answer

1100
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
John decides to learn how to play the piano.  He buys a piano for $500.  He then hires a teacher for 20 lessons at $40 per lesson but ends up getting a 25% discount.  How much did everything cost?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
1100
John decides to learn how to play the piano.  He buys a piano for $500.  He then hires a teacher for 20 lessons at $40 per lesson but ends up getting a 25% discount.  How much did everything cost?
train