In an election between two candidates, one got 40% of the total valid votes, and 30% of the votes were invalid. If the total number of votes was 7500, the number of valid votes that the other candidate got was: