Given:
Mira can complete a piece of work in 20 days.
Nina can complete a piece of work in 30 days.
Sima can complete a piece of work in 40 days.
Mira and Sima worked together for 4 days, then Mira was replaced by Nina.
Formula Used:
Work done by a person in 1 day = 1 / (Total days to complete the work)
Total work done = Sum of individual works
Calculation:
Work done by Mira in 1 day = 1/20
Work done by Sima in 1 day = 1/40
Work done by Mira and Sima together in 1 day = 1/20 + 1/40
⇒ Work done by Mira and Sima together in 1 day = 2/40 + 1/40
⇒ Work done by Mira and Sima together in 1 day = 3/40
Work done by Mira and Sima in 4 days = 4 × 3/40
⇒ Work done by Mira and Sima in 4 days = 12/40
⇒ Work done by Mira and Sima in 4 days = 3/10
Remaining work = 1 - 3/10
⇒ Remaining work = 10/10 - 3/10
⇒ Remaining work = 7/10
Work done by Nina in 1 day = 1/30
Now, Sima and Nina work together.
⇒ Work done by Sima and Nina together in one day = 1/40 + 1/30
⇒ Work done by Sima and Nina together in one day = 3/120+ 4/120
⇒ Work done by Sima and Nina together in one day = 7/120
Number of days required to complete 7/10 work = 7/10 × 120/7 = 12 days.
Total number of days to complete the work = 4 (Mira and Sima) + 12 (Nina and Sima)
⇒ Total number of days = 16
The work was completed in 16 days.
Alternate Method
LCM (20,30,40) = 120 = Total work.
Mira does = 120/20 = 6 units of work in one day.
Nina does = 120/30 = 4 units of work in one day.
Sima does = 120/40 = 3 units of work in one day.
Now, in 4 days Mira and Sima does = 6× 4 + 3× 4 = 36 units of work.
Remaining work = 120 -36 = 84 units.
After replacement of Mira, Sima and Nina does = 4 + 3 = 7 units in one day.
So, they complete work in 84 / 7 = 12 days.
∴ The work gets completed in 4 + 12 = 16 days.