Actually, if nobody got the required majority of electoral votes The House could vote for any American citizen over the age of 35. That is the only limitation in the law. They are not limited to the candidates who ran.

They would probably pick Speaker Ryan, if he agreed.