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?
The lawyer worked 50*2=
<gadget id="calculator">50*2</gadget>
<output>100</output>
100 hours out of court.
So he worked 100+50=
<gadget id="calculator">100+50</gadget>
<output>150</output>
150 hours total.
That means the hourly time cost 150*100=$
<gadget id="calculator">150*100</gadget>
<output>15_000</output>
15000.
Adding the upfront cost it was 15000+1000=$
<gadget id="calculator">15000+1000</gadget>
<output>16_000</output>
16000.
His brother paid half so he paid 16000/2=$
<gadget id="calculator">16000/2</gadget>
<output>8_000</output>
8000.

<result>8_000</result>