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

### Instruction:
In a truck, there are 26 pink hard hats, 15 green hard hats, and 24 yellow hard hats.  If Carl takes away 4 pink hard hats, and John takes away 6 pink hard hats and twice as many green hard hats as the number of pink hard hats that he removed, then calculate the total number of hard hats that remained in the truck.

### Response:
 Wakati Carl anachukua kofia ngumu 4 za rangi ya pinki, idadi jumla ya kofia ngumu za rangi ya pinki zilizobaki ni 26-4 = <<26-4=22>>22.
John pia anachukua kofia ngumu 6 za rangi ya pinki, ambayo inamaanisha kuna kofia ngumu 22-6 = <<22-6=16>>16 za rangi ya pinki zilizobaki.
Ikiwa idadi ya kofia ngumu za rangi ya kijani ambazo John alizichukua ni mara mbili ya idadi ya kofia ngumu za rangi ya pinki alizozichukua, basi alizichukua kofia ngumu 2 * 6 = <<6*2=12>>12 za rangi ya kijani.
Idadi jumla ya kofia ngumu za rangi ya kijani zilizobaki ni kofia 15 - kofia 12 = <<15-12=3>>3.
Pamoja na kofia ngumu 16 za rangi ya pinki, kuna kofia ngumu 3 za rangi ya kijani na kofia ngumu 24 za rangi ya njano, jumla ya kofia ngumu zilizobaki katika lori ni kofia 16 + kofia 3 + kofia 24 = <<16+3+24=43>>43.