Solution (By Examveda Team)
$$\eqalign{
& \left( {{\text{A + B}}} \right){\text{'s}}\,{\text{1}}\,{\text{day's}}\,{\text{work}} \cr
& = {\frac{1}{{15}} + \frac{1}{{10}}} = \frac{1}{6} \cr
& {\text{Work}}\,{\text{done}}\,{\text{by}}\,{\text{A}}\,{\text{and}}\,{\text{B}}\,{\text{in}}\,{\text{2}}\,{\text{days}} \cr
& = {\frac{1}{6} \times 2} = \frac{1}{3} \cr
& {\text{Remaining}}\,{\text{work}} \cr
& = {1 - \frac{1}{3}} = \frac{2}{3} \cr
& {\text{Now}},\,\frac{1}{{15}}\,{\text{work}}\,{\text{is}}\,{\text{done}}\,{\text{by}}\,{\text{A}}\,{\text{in}}\,{\text{1}}\,{\text{day}} \cr
& \therefore \frac{2}{3}\,{\text{work}}\,{\text{will}}\,{\text{be}}\,{\text{done}}\,{\text{by}}\,{\text{a}}\,{\text{in}} \cr
& {15 \times \frac{2}{3}} = 10\,{\text{days}} \cr
& {\text{Hence,}}\,{\text{the}}\,{\text{total}}\,{\text{time}}\,{\text{taken}} \cr
& = {10 + 2} = 12\,{\text{days}} \cr} $$
A=15
B=10
let us understand they(A+B) started work together for 2 days and then B left so it is easily understood that the remaining work has been completed by A. so let's make the equation with the above sentence.
(A+B)*2
In the above solution how the tree remaining work is equal to the 2/3 in third step