a and b began business with rs . 7000 and rs . 15000 after 6 months , a advances rs . 3000 and b withdraws rs . 5000 . at the end of the year , their profits amounted to rs . 2940 find the share of a and b respectively .
"7 * 6 + 10 * 6 ) : ( 15 * 6 + 10 * 6 ) = 102 : 150 = 51 : 75 = 17 : 25 17 : 25 a ' s share = 17 / 42 * 2940 = 1190 . b ' s share = 25 / 42 * 2940 = 1750 . a and b shares respectively 1190 and 1750 . answer : d"
multiply(divide(2940, add(add(multiply(7000, 6), multiply(subtract(7000, 3000), subtract(const_12, 6))), add(multiply(15000, 6), multiply(add(15000, 3000), subtract(const_12, 6))))), add(multiply(7000, 6), multiply(subtract(7000, 3000), subtract(const_12, 6))))