Below is an instruction that describes a task. Write a response that appropriately completes the request in Swahili. Please answer in Swahili.

### Instruction:
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?

### Response:
 Wakili alifanya kazi kwa saa 50*2=<<50*2=100>>100 nje ya mahakama.
Hii inamaanisha wakili alifanya kazi kwa jumla ya saa 100+50=<<100+50=150>>150.
Hii inamaanisha alilipia 150*100=$<<150*100=15000>>15000.
Kwa hivyo John alilipa 15000-1000=$<<15000-1000=14000>>14000.
Ndugu yake alilipa nusu, kwa hivyo alilipa 14000/2=$<<14000/2=7000>>7000.
Kwa hivyo jumla, John alilipa 7000+1000=$<<7000+1000=8000>>8000.