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

### Instruction:
Hector purchased a container of gumballs.  He gave 4 to Todd, then he gave twice as many as he had given Todd to Alisha, and then he gave 5 less than four times as many to Bobby as he had given to Alisha.  If Hector had 6 gumballs remaining, what is the total number of gumballs that Hector purchased?

### Response:
 Hector alimpa Alisha mara mbili ya aliyompa Todd, jumla ya gumballs 4*2=8.
Hector alimpa 5 chini ya mara nne ya aliyompa Alisha, au jumla ya gumballs (4*8)-5=27.
Ikiwa Hector alikuwa na gumballs 6 zilizobaki, awali alinunua gumballs 4+8+27+6=45.