Solution:
Concept: If someone can finish a whole piece of work in n days, then in ONE day they do n1 of it. When people work together, their one day's works add up. The whole work is taken as 1, and time needed = work to be done ÷ one day's work.
Given: A takes 10 days, B 12 days and C 15 days; A leaves after 2 days and B leaves 3 days before the end.
Step 1 — Set up the equation.
Let the work last x days. A works 2 days, B works (x−3) days and C works x days. Their one day's works are 101, 121 and 151, and together they finish the whole work (1), as the stem shows.
102+12x−3+15x=1
Step 2 — Clear the fractions.
We multiply every term by 60, the L.C.M. of 10, 12 and 15.
12+5(x−3)+4x=60
Step 3 — Open the bracket and collect terms.
We expand 5(x−3) and then collect the x-terms and the numbers.
12+5x−15+4x9x−39xx=60=60=63=7
Step 4 — Check.
We put x=7 back: A works 2 days, B works 4 days and C works 7 days.
Work done=102+124+157=306+3010+3014=1
The whole work is done, so x=7 is right.
Watch out: B leaves 3 days BEFORE the end, so B works (x−3) days, not 3 days.
Therefore, the work lasted 7 days.