Henry Ernest Dudeney/Modern Puzzles/48 - Railway Shunting/Solution

Solution
Refer to the following diagram, in which:
 * the engines are $L$ and $R$
 * $L$'s carriages, never separated in the solution, are denoted by $X$
 * $R$'s carriages are $A$ and $B$
 * $S$ is the siding.


 * [[File:Dudeney-Modern-Puzzles-48-answer.png]]

Make the following moves: