Please reason step by step, and put your final answer within \boxed{}.
In an election, there are three candidates - A, B, and C. Candidate A gets 50% of the votes, candidate B gets 35% of the votes, and candidate C gets 15% of the votes. Candidate A is elected by a majority of 1400 votes over candidate B. What is the total number of votes polled?
user