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

### Instruction:
It takes a butterfly egg 120 days to become a butterfly. If each butterfly spends 3 times as much time as a larva as in a cocoon, how long does each butterfly spend in a cocoon?

### Response:
 Hebu c iwe muda ambao kipepeo hulala kwenye kokoni na l iwe muda ambao hulala kama kiwavi. Tunajua kwamba l = 3c na l + c = 120.
Kwa kubadilisha equation ya kwanza kwenye equation ya pili, tunapata 3c + c = 120.
Kwa kuunganisha vipengele kama, tunapata 4c = 120.
Kwa kugawanya pande zote mbili na 4, tunapata c = 30.