Explanation
To find the time taken when A and B work alternately, first determine the total work by taking the Least Common Multiple (LCM) of their individual days.
LCM of 21 and 24 = 168 units
This means the total work is 168 units.
Efficiency of A = 168 ÷ 21 = 8 units per day
Efficiency of B = 168 ÷ 24 = 7 units per day
In a two-day cycle where A works on the first day and B works on the second day, the total work completed is:
8 + 7 = 15 units
Dividing the total work by the work completed in one cycle:
168 ÷ 15 = 11 cycles with a remainder of 3 units
Since each cycle consists of 2 days, 11 cycles represent:
11 × 2 = 22 days
Work completed in 22 days is:
11 × 15 = 165 units
The remaining work is:
168 - 165 = 3 units
On the 23rd day, it is A's turn to work. Since A can complete 8 units in a full day, the time A takes to finish the remaining 3 units is:
3/8 day
Combining the days, the total time required to complete the work is 22 3/8 days.