Problem Statement
A can finish a work in 18 days and B in 27 days. They work on alternate days starting with A. In how many days will the work be finished?
Explanation
In two days, work done is one by eighteen plus one by twenty seven equals five by fifty four. After 20 days (10 pairs), work done is fifty by fifty four. Day 21 by A adds three by fifty four, leaving one by fifty four. B needs half a day more. Total is 21.5 days.
Code Solution
SolutionRead Only
After 20d: 50/54; +A: 53/54; remaining 1/54 ⇒ B needs (1/54)/(1/27)=0.5 d
