sentence1: He was elected on the American ticket to the 29th United States Congress , holding office from March 4 , 1845 , to March 3 , 1847 .
sentence2: He was elected on the American ticket to the 29th United States Congress , which operates from March 4 , 1845 to March 3 , 1847 .