Let's say that after the state-by -state election, both got a an even total of 269
According to the 12 amendment, The president will be selected by a newly elected house representatives, in which each state delegation will be casting one vote
hope this helps