Based on the story of the same name from Main Line Engines.
The Fat Controller doesn't allow the heavier main engines to run on branch lines due to their weight, and Gordon believes the reason is because branch lines are vulgar. However, due to a green floppy hat, Edward is switched onto the main line and Gordon is mistakenly sent onto the branch line, where Bill and Ben are waiting.