p can do a work in 24 days . q can do the samework in 9 days & r can do the same work in 12 days . q & r start the work and leave after 3 days . p finishes the remaining work in how many days .
work done by p in 1 day = 1 / 24 work done by q in 1 day = 1 / 9 work done by r in 1 day = 1 / 12 work done by q and r in 1 day = 1 / 9 + 1 / 12 = 7 / 36 work done by q and r in 3 days = 3 × 7 / 36 = 7 / 12 remaining work = 1 – 7 / 12 = 5 / 12 number of days in which p can finish the remaining work = ( 5 / 12 ) / ( 1 / 24 ) = 10 b
divide(subtract(const_1, multiply(add(divide(const_1, 12), divide(const_1, 9)), 3)), divide(const_1, 24))