I'm going to be honest that I'm not 100% sure with my answer but, one of the candidates had a lower popular vote (the people) and the other candidate had a higher electoral vote (the representive vote) and although the candidate didn't have the popular vote, they still won due to the electoral votes.