Fact1: Conductor in has own problems Shining Time, Fact2: supply of gold dust to allow him to travel back from Island of Sodor, Fact3: lost engine named is hidden in workshop on Muffle Mountain, Fact4: Lily Stone is being sent from hometown to visit Burnett on Muffle Mountain, Fact5: Mutt puts her on Rainbow Sun of instead right train
Output: Sir Topham Hatt is away on holiday, leaving Mr. Conductor in charge. Meanwhile, while talking at Mathwaite, Thomas and Gordon encounter Diesel 10. Meanwhile, in Shining Time, Mr. Conductor has his own problems as his supply of gold dust is running low and not enough to allow him to travel back from the Island of Sodor. Later that day, while Thomas and James are at Tidmouth Sheds, Diesel 10 arrives and announces his evil plan to get rid of the steam engines; Thomas leaves to collect Mr. Conductor. The lost engine, named Lady, is hidden in a workshop on Muffle Mountain. Burnett Stone has kept her hidden after Diesel 10s last attempt to destroy her. Despite having rebuilt Lady, Burnett is unable to steam her despite using different types of coal. At night, Diesel 10 attacks the shed where the steam engines are sleeping, but after his gold dust fails him, Mr. Conductor repels him with sugar and Diesel 10 quickly retreats. Lily Stone is being sent from her hometown to visit Burnett on Muffle Mountain. While at the railway station, she meets Mutt, who puts her on the Rainbow Sun instead of the right train. On arriving at Shining Time, she meets Junior and Stacy Jones, who takes her to Burnetts house. While talking at Knapford, Percy and Thomas conclude there is a secret railway between Sodor and Shining Time. Diesel 10 overhears them and goes to the Sodor Ironworks to tell Splatter and Dodge of his plans to destroy the lost engine and the other steam engines. Toby rings his bell to distract him, causing Diesel 10 to knock the shed roof. Later, Henry has a bad cold, so Thomas collects six special coal trucks for him, but because one rolled through the Magic Buffers, he only has five according to Bertie. The next day, Lily meets Patch, who takes her on a horse ride to Shining Time, where she meets Junior again. Junior takes her through the Magic Railroad to Sodor, where they meet Thomas. Thomas is not happy to see Junior, but agrees to help him and Lily and takes the two of them to the Sodor Grain Windmill, where they find Mr. Conductor. Junior climbs onto one of the windmill sails and ends up being thrown onto Diesel 10s roof. Later that night, Percy finds Splatter and Dodge have located the Sodor entrance to the Magic Railroad and goes to warn Thomas. Thomas agrees to take Lily back home and sets off. While travelling through the Magic Railroad, Thomas discovers the missing coal truck, which he collects and arrives at Muffle Mountain. Lily goes to find Burnett, leaving Thomas stranded on the mountain, but as the wind picks up, Thomas rolls down the mountain and reenters the Magic Railroad through another secret portal. Lily finds Burnett in his workshop where he shows her Lady and explains his problem in getting her to steam. Lily suggests using Sodor coal, and when Patch goes back to retrieve the truck, Burnett uses the coal to fire Lady up. Now able to steam, Burnett, Lily, Patch and Mutt take Lady back along the Magic Railroad, regenerating both Lady and the railroad in the process. Thomas then arrives and the two engines return to Sodor, where they meet Mr. Conductor and Junior. Diesel 10 arrives with Splatter and Dodge, who abruptly decide to stop helping him. Thomas and Lady, driven by Burnett, flee from Diesel 10, who chases them towards a crumbling viaduct. Thomas and Lady both make it safely across, and as Diesel 10 approaches, he applies his brakes, but it is too late and he falls off the bridge and lands into a barge filled with sludge. That evening, Thomas, Lady and Burnett return to the grotto; Lily combines water from a wishing well and shavings from the Magic Railroad to make more gold dust. Junior decides to go to work on Sodor and Mr. Conductor gives him his own cap before sending him to another railway, before leaving himself to welcome Sir Topham Hatt home. Lily, Burnett, Patch and Mutt return to Shining Time, while Thomas happily travels home into the sunset.