Ram's work rate = 101 of the work per day
Anshu's work rate = 201 of the work per day
Combined rate when working together:
101+201
=202+201
=203 of the work per day
Let the total time taken = x days
For (x−2) days: Both Ram and Anshu work together
For the last 2 days: Only Anshu works alone
Work done by both together = (x−2)×203
Work done by Anshu alone = 2×201
=202
=101
Total work must equal 1:
(x−2)×203+101=1
(x−2)×203=1−101
(x−2)×203=109
x−2=109×320
x−2=30180
x−2=6
x=8 days
Therefore, the work was completed in 8 days.