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

### Instruction:
The number of trees is three times more than the number of stones in the courtyard. There are also twice as many birds in the trees as the combined number of trees and stones in the yard. If the number of stones is 40, how many birds are in the trees?

### Response:
 Idadi ya miti ni mara tatu zaidi ya idadi ya mawe, maana yake kuna miti 3*40 = <<3*40=120>>120 zaidi ya mawe katika ua.
Jumla ya miti katika ua ni 120+40 = <<120+40=160>>160
Jumla, kuna miti na mawe 160+40 = <<160+40=200>>200 katika ua.
Kwa kuwa idadi ya ndege ni mara mbili ya idadi ya pamoja ya miti na mawe, kuna ndege 2*200 = 400 katika miti.