Sub topic 2
Pick the Total Work: the LCM Method
Why choose a total work?
Prerequisites: you should be comfortable with fractions, reciprocals, ratios, and finding the least common multiple (LCM).
In time-and-work problems, the actual size of the job is often not given. You can choose a convenient total work yourself. The best choice usually turns each worker's fractional daily rate into a whole number.
The key relation is:
\[ \text{Work}=\text{Rate}\times\text{Time} \]
If a worker completes a job in \(t\) days, the worker's rate is:
\[ \text{Rate}=\frac{1}{t}\text{ job per day} \]
For example, if A completes a job in 12 days, A does \(1/12\) of the job each day. If B completes it in 18 days, B does \(1/18\) each day.
Adding these fractions is correct, but it can be inconvenient. The LCM method replaces the whole job with a number of units that is divisible by every given time.
Applying the LCM method
Suppose A takes 12 days and B takes 18 days.
- Find the LCM of 12 and 18.
\[ \operatorname{LCM}(12,18)=36 \]
- Treat the total job as 36 units.
- Find each worker's daily work.
\[ \text{A's rate}=\frac{36}{12}=3\text{ units per day} \]
\[ \text{B's rate}=\frac{36}{18}=2\text{ units per day} \]
- Add their rates.
\[ 3+2=5\text{ units per day} \]
- Divide total work by combined rate.
\[ \text{Time}=\frac{36}{5}=7.2\text{ days} \]
The chosen total, 36 units, is artificial. It does not change the answer because both total work and daily work were scaled by the same factor.
| Worker | Time alone | Work in 36 units | Daily rate |
|---|---|---|---|
| A | 12 days | 36 units | 3 units/day |
| B | 18 days | 36 units | 2 units/day |
| A and B | — | 36 units | 5 units/day |
Why the LCM works
If the total work is \(W\), a worker who takes \(t\) days has rate \(W/t\). Choosing \(W\) as a multiple of every relevant time makes all these rates whole numbers.
For times \(a\), \(b\), and \(c\), choose:
\[ W=\operatorname{LCM}(a,b,c) \]
Then the corresponding rates are:
\[ \frac{W}{a},\quad \frac{W}{b},\quad \frac{W}{c} \]
This is especially useful when several workers join, leave, or work in stages. Use one common total work throughout the problem. Do not change the assumed total halfway through.
from math import lcm
total = lcm(12, 18) # 36 units of work
rate_a = total // 12 # 3 units per day
rate_b = total // 18 # 2 units per day
print(total / (rate_a + rate_b)) # 7.2The // operator is safe here because the total is divisible by each time. The final division can produce a fraction of a day.
A quick comparison with fractional rates
Using fractions directly gives:
\[ \frac{1}{12}+\frac{1}{18} =\frac{3}{36}+\frac{2}{36} =\frac{5}{36} \]
So the combined rate is \(5/36\) job per day. The time is its reciprocal:
\[ \frac{36}{5}=7.2\text{ days} \]
The LCM method reaches the same calculation by naming the 36 parts as units of work first.
Exercise
A completes a job in 20 days and B completes it in 30 days. Using the LCM method, how long do they take together?
Show answer
LCM(20, 30) = 60 units. A works at 3 units/day and B at 2 units/day. Their combined rate is 5 units/day, so the time is 60/5 = 12 days.