Let the total number of votes be \( x \).
Then one candidate got \( 62% \) of the votes, i.e., \( 0.62x \), and the other got \( 38% \), i.e., \( 0.38x \).
The difference in votes is:
\[
0.62x - 0.38x = 0.24x
\]
Given that the winning margin is 432 votes:
\[
0.24x = 432 \Rightarrow x = \frac{432}{0.24} = 1800
\]