The correct answer is "D".
As a member of the Whig Party, Abraham Lincoln served during 4 successive terms as in the Illinois House of Representatives, from 1834 to 1842. He would then serve as Representative for Illinois in the US House of Representatives from 1847 to 1849.
As a member of the Republican Party, he would rise as one of the main leaders of this organization, securing the position to run for the party in 1860. He would eventually become President of the United States on March 4, 1861.