P and Q can complete a work in 15 days and 10 days respectively. They started the work together and then Q left after 2 days. P alone completed the remaining work. The work was finished in__________days.

P and Q can complete a work in 15 days and 10 days respectively. They started the work together and then Q left after 2 days. P alone completed the remaining work. The work was finished in__________days.

A. 12
B. 15
C. 22
D. 20
Work done by P in 1 day = 1/15
Work done by Q in 1 day = 1/10
Work done by P and Q in 1 day = 1/15 + 1/10 = 1/6
Work done by P and Q in 2 days = 2 × (1/6) = 1/3
Remaining work = 1 – 1/3 = 2/3
Time taken by P to complete the remaining work 2/3 = (2/3) / (1/15) = 10 days
Total time taken = 2 + 10 = 12 days