Complex sentence: He was collector of customs at Perth Amboy from 1829 to 1833, and was elected as a Jacksonian to the Twenty-third and Twenty-fourth Congresses, holding office from March 4,1833 to March 3,1837.
Split into simpler sentences: He was collector of customs at Perth Amboy from 1829 to 1833. Parker was elected as a Jacksonian to the 23rd and 24th Congresses, holding office from March 4,1833 to March 3,1837.