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

### Instruction:
Annie is building a diorama for her history class. The amount of time she spent building it is equal to three times the amount of time she spent planning it minus 5 minutes. If she spent 67 minutes on the diorama total, how many minutes did she spend building it?

### Response:
 Acha p iwe muda wa kupanga kwa dakika na b iwe muda wa kuijenga. Tunajua kwamba b = 3p - 5 na b + p = 67.
Kwa kubadilisha equation ya kwanza katika equation ya pili, tunapata 3p - 5 + p = 67.
Kwa kuunganisha vipengele sawa, tunapata 4p - 5 = 67.
Kwa kuongeza 5 kwa pande zote mbili, tunapata 4p = 72.
Kwa kugawanya pande zote mbili kwa 4, tunapata p = 18.
Kwa kubadilisha thamani hii katika b = 3p - 5, tunapata b = 3 * 18 - 5 = <<3*18-5=49>>49.