a , b , c subscribe rs . 50000 for a business . if a subscribes rs . 4000 more than b and b rs . 5000 more than c , out of a total profit of rs . 36000 , what will be the amount a receives ?
total amount invested = 50000 assume that investment of c = x . then investment of b = 5000 + x , investment of a = 4000 + 5000 + x = 9000 + x x + 5000 + x + 9000 + x = 50000 ⇒ 3 x + 14000 = 50000 ⇒ 3 x = 50000 – 14000 = 36000 ⇒ x = 36000 / 3 = 12000 investment of c = x = 12000 investment of b = 5000 + x = 17000 investment of a = 9000 + x = 21000 ratio of the investment of a , b and c = 21000 : 17000 : 12000 = 21 : 17 : 12 share of a = total profit × 21 / 50 = 36000 × 21 / 50 = 15,120 answer is a .
multiply(divide(add(divide(subtract(50000, add(add(5000, 4000), 5000)), const_3), add(5000, 4000)), 50000), 36000)