If no candidate receives a majority of Electoral votes, the House of Representatives elects the President from the 3 Presidential candidates who received the most Electoral votes. Each state delegation has one vote.
If no candidate for Vice President receives an absolute majority of electoral votes, then the United States Senate must do the same, with the top two vote takers for that office as candidates.