Two trains
Two trains started simultaneously, each travelling towards the other. How long did each train need to complete the journey?
Problem
A train started at Amityville and travelled at a constant velocity towards Brookville. At the same time, a train started at Brookville and travelled at a constant velocity towards Amityville.
After they met, the first train travelled for nine more hours before reaching Brookville, and the second train travelled for four more hours before reaching Amityville.
For how long did each train travel altogether?
This problem is taken from the World Mathematics Championships
Student Solutions
Answer: $10$ hours and $15$ hours
Using ratio
Image

Ratios $4 : k$ and $k : 9$ are equivalent $\Rightarrow k = 6$
(if $k=6$ isn't obvious you can get it from $\frac4k=\frac k9\Rightarrow k^2 = 4\times9$)
So journeys are $6+9$ and $6+4$ hours long.
Using fractions of the total journey times
Image

The fraction of the journey that the red train completes in $k$ hours is the same as the fraction of the journey that the blue train completes in 4 hours.
Using distance = speed $\times$ time
Suppose that the train from A to B travels at $a$ km per hour, and the train from B to A travels at $b$ km per hour. Then this diagram shows the distances travelled by each train in each part of the journey:
Image

So $ak=4b$, and $9a=bk$.
We can make $a$ (or $b$) the subject of the first equation, and substitute it into the second:
So $k=6$, which means the journey from A to B is $15$ hours long, and the journey from B to A is $10$ hours long.We can make $a$ (or $b$) the subject of the first equation, and substitute it into the second: