There were only two candidates in an election. One got 62% votes and was elected by a margin of 144 votes. The total number of voters were

232.

Let's assume that the candidate who won the election received 62% of the votes, and the candidate who lost received the remaining 38% of the votes.

Let's say the total number of votes cast in the election is "X".

According to the given information, the winning candidate won by a margin of 144 votes. This means the winning candidate received 144 more votes than the losing candidate.

So, if we compute the difference between 62% and 38% of the total votes, it should be equal to 144.

62% of X - 38% of X = 144

(62/100) * X - (38/100) * X = 144

Simplifying the equation further:

(24/100) * X = 144

To eliminate the fraction, we multiply both sides of the equation by 100:

24X = 14400

Dividing both sides of the equation by 24, we get:

X = 600

Therefore, the total number of voters in the election was 600.