Two trains are headed toward one another on the same track. Train A has a constant speed of 40[km/hour] and Train B has a constant speed of 20[km/hour]. A Tengu that can fly at 60[km/hour] is perched on top of Train A. When the trains are 90[km] apart, it hops off and begins to fly toward Train B. When it reaches Train B, it instantaneously reverses direction and begins flying toward Train A. How far does the Tengu fly before the trains collide?

Do not make this harder than it is. A series of increasingly small distances would fit this problem perfectly, but that is needlessly complex.

The trick here is to understand that the “Flying Creature” is always moving at a constant velocity and merely bounces off of an imaginary plane in front of the oncoming train before heading back to the other train. Because of this assumption, the Tengu will cover the same amount of ground in the time before the trains collide flying between them as if it had been flying in a straight line for the same amount of time.

First, calculate the time between the start and when the trains collide. The idea is that at some time in the future, the distance traveled by Train A and Train B added together will equal the original distance between them at the start.

= Time Before the Trains Collide [hour].

= Velocity of Train A [km/hour].

= Velocity of Train B [km/hour].

= Distance Between the Trains [km].

Now with time in hand, it is simple to calculate how far the Tengu flew in the alloted time.

= Velocity of the Tengu [km/hour].

= Distance Traveled by the Tengu [km].