Problem: in an election only two candidates contested . a candidate secured 70 % of the valid votes and won by a majority of 178 votes . find the total number of valid votes ?
Rationale: let the total number of valid votes be x . 70 % of x = 70 / 100 * x = 7 x / 10 number of votes secured by the other candidate = x - 7 x / 100 = 3 x / 10 given , 7 x / 10 - 3 x / 10 = 178 = > 4 x / 10 = 178 = > 4 x = 1780 = > x = 445 . answer : a
annotated_formula: divide(178, divide(subtract(70, subtract(const_100, 70)), const_100))