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

### Instruction:
 Delta, Beta na Gamma waliamua kugawana mikate 40. Delta alitwaa mikate 8 na Beta alitwaa mara tatu ya ile ya Gamma. Gamma alipokea mikate mingapi?


### Response:
 Hebu tuchukue x kuwa idadi ya mikate ambayo Gamma alitwaa.
Jumla ya mikate ya Gamma na Beta ni 40 - 8 = <<40-8=32>>32 mikate.
Kama Beta alitwaa mara tatu ya ile ya Gamma, basi Beta ana mikate 3x.
Jumla ya mikate ya Gamma na Beta ni 3x + x = 32 mikate.
Tukichanganya vipengele sawia, tunapata 4x = 32.
Hivyo, thamani ya x ambayo inawakilisha idadi ya mikate ambayo Gamma ana ni x = 32 / 4 = <<32/4=8>>8 mikate.