In 1923, the family moved to Provo, Utah, and Farnsworth attended Brigham Young High School that fall. His father died of pneumonia in January 1924 at age 58, and Farnsworth assumed responsibility for sustaining the family while finishing high school. After graduating BYHS in June 1924, he applied to the United States Naval Academy in Annapolis, Maryland, where he earned the nation's second-highest score on academy recruiting tests. However, he was already thinking ahead to his television projects; he learned that the government would own his patents if he stayed in the military, so he obtained an honorable discharge within months of joining under a provision in which the eldest child in a fatherless family could be excused from military service to provide for his family. He returned to Provo and enrolled at Brigham Young University, but he was not allowed by the faculty to attend their advanced science classes based upon policy considerations. He attended anyway and made use of the university's research labs, and he earned a Junior Radio-Trician certification from the National Radio Institute, and full certification in 1925. While attending college, he met Provo High School student Elma "Pem" Gardner (February 25, 1908 – April 27, 2006), whom he eventually married.