Input (grade 10): He served as Governor of South Carolina from 1842 to 1844 and in the United States Senate, following the death of Andrew P. Butler, from 1857 until his resignation in 1860 in light of South Carolina's secession from the Union.
Output (grade 12): He served as a United States Representative from 1835 to 1836, Governor of South Carolina from 1842 to 1844, and United States Senator from 1857 to 1860.