a sum is divided among b , c and d in such a way that for each rupee b gets , c gets 150 paisa and d gets 50 paisa . if the share of c is rs . 40 , what is the total amount ?
b : c : d = 100 : 150 : 100 20 : 30 : 10 30 - - - 40 60 - - - ? = > 80 answer : c
multiply(divide(add(divide(50, 50), add(divide(const_100, 50), divide(150, 50))), divide(150, 50)), 40)