2. In an election, there were three candidates. 3/7 of the electors voted for the winner. The runner-up received 5/8 of the remaining votes. If the winner received 3021 votes more than the runner-up, how many electors voted?

Let the total number of electors be E.

The number of votes cast for the winner is 3/7 * E.
The number of votes cast for the runner-up is 5/8 * (E - (3/7 * E)) = 5/8 * (4/7 * E) = 20/56 * E = 5/14 * E.
The number of votes cast for the winner is 5/14 * E + 3021.
Therefore, 3/7 * E - 5/14 * E - 3021 = 0.
Multiplying through the equation by 14, we get 6E - 5E - 42394 = 0.
Combining like terms, we get E - 42394 = 0.
Adding 42394 to both sides of the equation, we get E = 42394.
Thus, there were 42394 electors who voted. Answer: \boxed{42394}.