The lawyer worked 50*2=<<50*2=100>>100 hours out of court

So he worked 100+50=<<100+50=150>>150 hours total

That means the hourly time cost 150*100=$<<150*100=15000>>15000

Adding the upfront cost it was 15000+1000=$<<15000+1000=16000>>16000

His brother paid half so he paid 16000/2=$<<16000/2=8000>>8000

# Answer

8000
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
John has to hire a lawyer.  He pays $1000 upfront.  He then gets charged $100 per hour.  The lawyer has to work 50 hours in court time.  It takes 2 times that long in prep time.  His brother pays half the fee.  How much did John pay?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
8000
John has to hire a lawyer.  He pays $1000 upfront.  He then gets charged $100 per hour.  The lawyer has to work 50 hours in court time.  It takes 2 times that long in prep time.  His brother pays half the fee.  How much did John pay?
train