a , b and c can do a piece of work in 24 days , 30 days and 40 days respectively . they began the work together but c left 8 days before the completion of the work . in how many days was the work completed ?
"one day work of a , b and c = 1 / 24 + 1 / 30 + 1 / 40 = 1 / 10 work done by a and b together in the last 8 days = 8 * ( 1 / 24 + 1 / 30 ) = 3 / 5 remaining work = 2 / 5 the number of days required for this initial work = 4 days . the total number of days required = 8 + 4 = 12 days . answer : a"
add(divide(subtract(const_1, multiply(add(divide(const_1, 24), divide(const_1, 30)), 8)), add(divide(const_1, multiply(add(const_2, const_3), multiply(const_2, 8))), add(divide(const_1, 24), divide(const_1, 30)))), 8)