Complex sentence: The 5th baronet sat as MP for Wigtownshire in 1805--1812 and 1822--1830, and the 7th baronet sat for the same constituency from 1880 to 1906, going on to become Lord Lieutenant of Wigtown.
Split into simpler sentences: The 5th baronet sat as MP for Wigtownshire in 1805--1812 and 1822--1830. The 7th baronet sat for the same constituency from 1880 to 1906, going on to become Lord Lieutenant of Wigtown.