According to the 12th amendment, when no candidate received a majority, how is the President chosen?

If no candidate received a majority of the electoral votes in a presidential election, the President is chosen by the House of Representatives. Each state delegation in the House has one vote, and a candidate must receive the votes of at least 26 state delegations to win the presidency.