In an election that was contested by 2 candidates, one candidate got 20% of the total votes and yet lost by 600 votes. What is the total number of votes cast in the election, assuming all votes are valid?