a and b can complete a work in 15 days and 10 day . they started doing the work together but after 2 days b had to leave and a alone completed the remaining work . the whole work was completed in ?
"a + b 1 day work = 1 / 15 + 1 / 10 = 1 / 6 work done by a and b in 2 days = 1 / 6 * 2 = 1 / 3 remaining work = 1 - 1 / 3 = 2 / 3 now 1 / 15 work is done by a in 1 day 2 / 3 work will be done by a in 15 * 2 / 3 = 10 days total time taken = 10 + 2 = 12 days answer is b"
add(multiply(subtract(const_1, multiply(add(divide(const_1, 15), divide(const_1, 10)), 2)), 15), 2)