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