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

### Instruction:
Two trains left the station at the same time, but took different tracks to their destination. One took a track that was 200 miles long and it went 50 MPH. The other took the other track that was 240 miles long and it went 80 MPH. How much time did it take them on average? (Round to the nearest integer.)

### Response:
 Treni ya kwanza ilisafiri kwa maili 200 kwa kasi ya maili 50 kwa saa na treni ya pili ilisafiri kwa maili 240 kwa kasi ya maili 80 kwa saa.
Treni ya kwanza ilisafiri kwa kasi ya masaa 200 / 50 = <<200/50=4>>4
Treni ya pili ilisafiri kwa kasi ya masaa 240 / 80 = <<240/80=3>>3
Muda wastani uliosafiriwa ni wastani wa masaa 4 na masaa 3 = <<(4+3)/2=3.5>>3.5 masaa