john started a business , investing rs . 18000 . after 3 months and 4 months respectively , rose and tom joined him with capitals of 12000 and 9000 . at the end of the year the total profit was rs . 4070 . what is the difference between rose ’ s and tom ’ s share in the profit ?
john : rose : tom ratio of their investments = 18000 × 12 : 12000 × 9 : 9000 × 8 = 6 : 3 : 2 the difference between rose ’ s and tom ’ s share = 1 share : . i . e . = rs . 4070 × 1 / 11 = rs . 370 . c )
subtract(divide(multiply(4070, divide(multiply(12000, subtract(multiply(3, 4), 3)), multiply(const_10, const_100))), add(add(divide(multiply(multiply(3, 4), 18000), multiply(const_10, const_100)), divide(multiply(12000, subtract(multiply(3, 4), 3)), multiply(const_10, const_100))), divide(multiply(9000, subtract(multiply(3, 4), 4)), multiply(const_10, const_100)))), divide(multiply(4070, divide(multiply(9000, subtract(multiply(3, 4), 4)), multiply(const_10, const_100))), add(add(divide(multiply(multiply(3, 4), 18000), multiply(const_10, const_100)), divide(multiply(12000, subtract(multiply(3, 4), 3)), multiply(const_10, const_100))), divide(multiply(9000, subtract(multiply(3, 4), 4)), multiply(const_10, const_100)))))