Problem: in an exam 80 % of the boys and 40 % of the girls passed . the number of girls who passed is 120 , which is 2 / 3 rd of the number of boys who failed . what is the total number of students who appeared for the exam ?
Rationale: let the number of boys = x , number of girls = y 40 y / 100 = 120 y = 300 120 = 2 / 3 * 20 x / 100 = 2 x / 15 x = 900 total = x + y = 300 + 900 = 1200 answer : a
annotated_formula: add(divide(120, multiply(divide(subtract(const_100, 80), const_100), divide(2, 3))), divide(120, divide(40, const_100)))