The election has only two candidates. One candidate got 30% of the total votes and lost by 500 votes.
Since there are only two candidates, the winner received:
100%−30%=70% of the votes
The difference in vote percentages between the two candidates is:
70%−30%=40%
The loser lost by 500 votes, which represents the difference in actual votes between the two candidates.
This means 40% of the total votes equals 500 votes:
40%×Total votes=500
0.40×Total votes=500
Total votes=0.40500
Total votes=1250
Therefore, the total number of votes cast in the election is 1250.