Two trains

Two trains started simultaneously, each travelling towards the other. How long did each train need to complete the journey?
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative

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