a and b began business with rs . 2000 and rs . 4000 after 8 months , a withdraws rs . 1000 and b advances rs . 1000 more . at the end of the year , their profits amounted to rs . 630 find the share of a .
"( 2 * 8 + 1 * 4 ) : ( 4 * 8 + 5 * 4 ) 5 : 13 5 / 18 * 630 = 175 answer : a"
multiply(divide(630, add(add(multiply(2000, 8), multiply(subtract(2000, 1000), subtract(const_12, 8))), add(multiply(4000, 8), multiply(add(4000, 1000), subtract(const_12, 8))))), add(multiply(2000, 8), multiply(subtract(2000, 1000), subtract(const_12, 8))))