Murat and Mustafa can do a job together in fifteen days. After they have worked together for five days, Mustafa leaves the job. Murat completes the job in sixteen days. How long would it take Mustafa to do the job alone?
The answer is 40 days but I want the steps to solve this.
Let $\;x,y\;$ be the amount of days it takes to Murat, Mustafa respectively to complete the job alone. We're given that
$$15\left(\frac1x+\frac1y\right)=1$$
so that after 5 days they worked together they did one third of the job, and it then took Murat sixteen days to complete the two thirds that were still left:
$$\frac13+\frac{16}x=1\iff\frac x{16}=\frac32\implies x=24$$ and then
$$15\left(\frac1{24}+\frac1y\right)=1\implies\frac{15}y=\frac38\implies y=40$$