Problem Statement
A can do a work in 10 days and B in 15 days. A works for 2 days and leaves. How long will B take to finish the rest?
Explanation
Take LCM 30 units. A does 3 units per day. In 2 days A does 6 units. Remaining is 24 units. B does 2 units per day, so needs 12 days.
Code Solution
SolutionRead Only
Remain = 30 − 2×3 = 24 ⇒ 24/2 = 12
