Electoral college votes. A recent example of this is the 2016 US election, where Clinton won the popular vote, while Trump won the electoral college votes by a landslide. Since electoral college votes are what really count, Trump won.
I dont think this might be correct but I think the answer is the 3rd one.