who elects the vice president if the electoral college fails to do so
Electoral College (United States) If no candidate for president receives a majority of electoral votes for president, the Twelfth Amendment provides that the House of Representatives will select the president, with each of the fifty state delegations casting one vote. If no candidate for vice president receives a majority of electoral votes for vice president, then the Senate will select the vice president, with each of the 100 senators having one vote.[12][13]
Twelfth Amendment to the United States Constitution The Twelfth Amendment (Amendment XII) to the United States Constitution provides the procedure for electing the President and Vice President. It replaced the procedure provided in Article II, Section 1, Clause 3, by which the Electoral College originally functioned. Problems with the original procedure arose in the elections of 1796 and 1800. The Twelfth Amendment refined the process whereby a President and a Vice President are elected by the Electoral College. The amendment was proposed by the Congress on December 9, 1803, and was ratified by the requisite three-fourths of state legislatures on June 15, 1804.