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

### Instruction:
There were 8000 jelly beans in a certain barrel, and 10 people lined up to take some. The first six people each took twice as many jelly beans as each of the last four people took. If the last four people each took 400 jelly beans, how many jelly beans remained in the container?

### Response:
 Watu sita wa kwanza kila mmoja alipokea maharage ya jeli 2*400 = <<2*400=800>>800.
Jumla ya maharage ya jeli ambayo watu sita wa kwanza walipokea ni 800*6 = <<800*6=4800>>4800.
Jumla ya maharage ya jeli ambayo watu wanne wa mwisho walipokea ni 400*4 = <<400*4=1600>>1600.
Jumla ya maharage ya jeli ambayo watu 10 walipokea ni 4800+1600 = <<4800+1600=6400>>6400.
Idadi ya maharage ya jeli yaliyosalia ni 8000-6400 = <<8000-6400=1600>>1600.