a person spends 1 / 3 rd of the money with him on clothes , 1 / 5 th of the remaining on food and 1 / 4 th of the remaining on travel . now , he is left with rs 500 . how much did he have with him in the beginning ?
"suppose the amount in the beginning was rs ’ x ’ money spent on clothes = rs 1 x / 3 balance = rs 2 x / 3 money spent on food = 1 / 5 of 2 x / 3 = rs 2 x / 15 balance = 2 x / 3 - 2 x / 15 = rs 8 x / 15 money spent on travel = 1 / 4 of 8 x / 15 = rs 2 x / 15 = 8 x / 15 - 2 x / 15 = 6 x / 15 = rs 2 x / 5 therefore 2 x / 5 = 500 = 1250 answer : b"
divide(500, subtract(subtract(subtract(1, divide(1, 3)), divide(subtract(1, divide(1, 3)), 5)), divide(subtract(subtract(1, divide(1, 3)), divide(subtract(1, divide(1, 3)), 5)), 4)))