Answer:
Popular vote.
Electors cast the official vote.
Whoever wins the state, gets all of that state's electoral votes.
First candidate to 270 electoral votes wins the presidency.
Explanation:
In the Electoral College system, there are a certain amount of electors which is determined by the number of representatives in Congress.
Next, each of the elector votes for their candidate after the general election (popular vote).
The first candidate to reach 270 electoral votes which is more than half of the total 538 electoral votes is declared winner.