Final answer:
The pigeon flies a total distance of 120 miles altogether.
Step-by-step explanation:
The pigeon flies towards the train and meets it at some point. Let's calculate the time it takes for the train to reach the terminus:
Time = Distance/Speed
Time = 120 miles/30 mph
Time = 4 hours
Now, the pigeon flies back and forth during this 4-hour period. Since the train is traveling at a constant speed, the pigeon flies at the same speed towards the train and away from the train. Therefore, the total distance the pigeon flies is the distance it flew towards the train plus the distance it flew away from the train.
Distance = Speed x Time
Distance = 30 mph x 4 hours
Distance = 120 miles
Therefore, the pigeon flies a total distance of 120 miles altogether.