Problem: mr . jones gave 40 % of the money he had to his wife . he also gave 20 % of the remaining amount to his 3 sons . and half of the amount now left was spent on miscellaneous items and the remaining amount of rs . 12000 was deposited in the bank . how much money did mr . jones have initially ?
Rationale: explanation : let the initial amount be x , amount given to his wife = ( 40 / 100 ) x = 2 x / 5 balance = ( x - ( 2 x / 5 ) ) = 3 x / 5 amount given to his wife = ( 20 / 100 ) * ( 3 x / 5 ) = 3 x / 25 balance = 3 x / 5 - 3 x / 25 = 12 x / 25 amountt spent on miscellaneous items = ( 1 / 2 ) * ( 12 x / 25 ) = 6 x / 25 which is equal to 12000 hence , = > 6 x / 25 = 12000 = > x = 50000 answer : c
annotated_formula: divide(12000, multiply(divide(divide(const_100, const_2), const_100), multiply(subtract(const_1, divide(40, const_100)), subtract(const_1, divide(20, const_100)))))