please do this problem using chain rule :)
A, B and C can finish a piece of work in 30, 40, and 60 days respectively. 10 days after they started to work together B leaves. 4 days after B left, A leaves and C completes the remaining work. Find how many days C had worked altogether.