Correct option is D
Given:
A can finish the work in 20 days.
B can finish the work in 24 days.
A and B work together for 10 days, and then A leaves.
Solution:
Rate of work of A
Rate of work of B
Combined rate =
Combined rate =
So, A and B together can complete of the work per day.
In 10 days, A and B will complete:
Work done in 10 days =
Remaining work after 10 days.
Remaining work =
Since B's rate of work is per day, the time B will take to finish the remaining of the work is:
Time =
Alternate Method:

Total Work = 120 Unit
A and B work together for 10 days
Work Done in 2 Days = 6 + 5 = 11
11 10 = 110 Unit
Remaining work = 120 - 110 = 10 Unit
A and B work together for 10 days, and then A leaves.
So, B complete remaining work
Time = days