The rental fee is 5000*.1=$<<5000*.1=500>>500 per week

So it cost 500*4=$<<500*4=2000>>2000

His friend pays 2000*.4=$<<2000*.4=800>>800

So he pays 2000-800=$<<2000-800=1200>>1200

# Answer

1200
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
John's camera broke so he decided to rent one for 4 weeks.  It was a $5000 camera and the rental fee was 10% of the value per week.  His friend who was there when it broke agreed to pay 40% of the rental fee.  How much did John pay?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
1200
John's camera broke so he decided to rent one for 4 weeks.  It was a $5000 camera and the rental fee was 10% of the value per week.  His friend who was there when it broke agreed to pay 40% of the rental fee.  How much did John pay?
train