a and b can do a piece of work in 45 days and 40 days respectively . they began to do the work together but a leaves after some days and then b completed the remaining work in 23 days . the number of days after which a left the work was
"does the job in 40 days = 1 / 40 a & b together completes the job = ? after a leaves , b completes the remaining job in 23 days . i . e b ' s part of job in 23 days = 23 / 40 remaining part 17 / 40 is done by a & b together in x no . of days . i . e ( x / 45 ) + ( x / 40 ) = 17 / 40 = > x = 9 days answer : d"
divide(subtract(const_1, divide(23, 40)), add(divide(const_1, 45), divide(const_1, 40)))