Complex sentence: The line first opened as the Leven Railway in 1854, which in 1861 merged with the East of Fife Railway to form the Leven & East of Fife Railway.
Split into simpler sentences: The line first opened as the Leven Railway in 1854. In 1861 the company merged with the East of Fife Railway to form the Leven & East of Fife Railway.