A fly is resting on the front of a train that is hurtling forward at 60 kilometers per hour. On the same track, 300 kilometers straight ahead, another train is hurtling towards the first train at 60 kilometers per hour. At that moment, when the trains are 300 km apart, the fly takes off at 90 km per hour. He continually flies back and forth between the trains, flying just above the track and instantaneously turning around when he reaches a train.
What is the total distance traveled by the fly before the two trains crash together, squishing the fly between them in the process? Explain your answer.

What is the total distance traveled by the fly before the two trains crash together, squishing the fly between them in the process? Explain your answer.