Today's Challenge

Two trains are travelling along the same stretch of single line track towards each other.

Each train consists of a locomotive and two carriages.

There is however a siding that can take one locomotive and one carriage.

How is it possible for the two trains to pass each other by using this siding?

I was given this question as an aptitude test for a job!