a can do a piece of work in 10 days and b in 20 days . they began the work together but 5 days before the completion of the work , a leaves . the work was completed in ?
b ( x â € “ 5 ) / 10 + x / 20 = 1 x = 10 days
add(divide(subtract(const_1, add(multiply(5, divide(const_1, 10)), multiply(5, divide(const_1, 20)))), divide(const_1, 20)), 5)