a , b , c subscribe rs . 50000 for a business . a subscribes rs . 4000 more than b and b rs . 5000 more than c . out of a total profit of rs . 30000 , b receives :
let c = x . then , b = x + 5000 and a = x + 5000 + 4000 = x + 9000 . so , x + x + 5000 + x + 9000 = 50000 3 x = 36000 x = 12000 a : b : c = 21000 : 17000 : 12000 = 21 : 17 : 12 . b ' s share = rs . ( 30000 x 17 / 50 ) = rs . 10,200 . b
multiply(30000, divide(divide(add(50000, subtract(5000, 4000)), const_3), 50000))