Trump did not win the popular vote.

But the electoral college elects the president.