Let the number of possible voters (i.e. in voting list) be $N$.
Then since $10\%$ didn't vote, $\frac{9}{10}N$ did vote, and among them, 300 votes were invalid, so there are $\frac{9}{10}N-300$ valid votes.
Let the number of votes of the winner be $N_1$, and the number of votes of the loser be $N_2$.
We also know that the winner had $60\%$ of voting list, i.e. $N_1=\frac{6}{10}N$.
Then:
$$\begin{eqnarray}N_1-N_2 &=&900\\
N_1+N_2&=&\frac{9}{10}N-300\\
N_1&=&\frac{6}{10}N
\end{eqnarray}$$
Then eliminate: $N_2=N_1-900$ so, from the second equation,
$$2N_1-900=\frac{9}{10}N-300$$
And $N_1=\frac{6}{10}N$, so
$$2\frac{6}{10}N-900=\frac{9}{10}N-300$$
That is,
$$\frac{3}{10}N=600$$
Hence $N=2000$, the number of persons in voting list. The winner had $60\%$ of them or $1200$, and the loser had $1200-900=300$, so the total number of valid votes is $1200+300=1500$, as expected.