Complex sentence: The Glasgow and Paisley Joint Railway was built in 1840 and by 1847 the Paisley and Renfrew railway was serving as a spur to that line.
Split into simpler sentences: The Glasgow and Paisley Joint Railway was built in 1840. Later on the Paisley and Renfrew railway was serving as a spur to that line.