Sub topic 2
Pick the total work: the LCM method
Prerequisites and goal
This chapter assumes you can find the LCM of two or more numbers, work with fractions and reciprocals, and solve a simple linear equation. It also assumes you know the relation from the previous chapter: work = rate × time, so rate = work ÷ time.
The goal is to replace fractional rates such as 1/12 and 1/18 with whole numbers. You do this by choosing the total work yourself. After that, most time and work problems reduce to integer arithmetic that you can do in your head.
Why you are allowed to choose the total work
A problem usually says "A can finish a job in 12 days." It rarely says how big the job is. The size of the job cancels out of every answer, because every answer is a time, and time depends only on how fast people work relative to the job size.
So you may declare the job to be any positive number of units. Each person's rate changes with that choice, but the times do not. The method has one rule: choose the total once, and use that same total for every worker in the problem.
The standard fraction approach says the job is 1 whole, so A's rate is 1/12 job per day. The LCM approach says the job is 36 units, so A's rate is 36 ÷ 12 = 3 units per day. Both describe the same situation.
The method in four steps
- Read off each person's or pipe's time to do the whole job alone.
- Take the LCM of those times. This is your total work, in units.
- Divide the total by each time to get each rate in units per day. These are whole numbers by construction.
- Combine rates with ordinary arithmetic, then divide the total by the combined rate to get time.
Worked example 1: two workers
A can do a job in 12 days and B can do it in 18 days. How long do they take together?
- The LCM of 12 and 18 is 36, so the total work is 36 units.
- A's rate is 36 ÷ 12 = 3 units per day.
- B's rate is 36 ÷ 18 = 2 units per day.
- Together they do 3 + 2 = 5 units per day.
- Time = 36 ÷ 5 = 7.2 days.
You can confirm this in code. The math.lcm function needs Python 3.9 or later.
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.2Compare this with the fraction route, which gives the same answer but needs a common denominator at the addition step.
from fractions import Fraction
a = Fraction(1, 10) # A finishes the job in 10 days
b = Fraction(1, 15) # B finishes the job in 15 days
together = a + b
print(1 / together) # 6Here the rates 1/10 and 1/15 add to 1/6, so the pair takes 6 days. With the LCM method the same problem uses a total of 30 units, rates of 3 and 2, a combined 5 units per day, and 30 ÷ 5 = 6 days. The LCM is hidden inside the fraction addition, and the unit method simply makes it visible at the start.
Worked example 2: three workers
A, B and C can finish a job alone in 10, 12 and 15 days. How long do they take together?
- LCM of 10, 12 and 15 is 60, so the total work is 60 units.
- Rates: 60 ÷ 10 = 6, 60 ÷ 12 = 5, 60 ÷ 15 = 4 units per day.
- Combined rate: 6 + 5 + 4 = 15 units per day.
- Time = 60 ÷ 15 = 4 days.
The answer is a whole number here, which is a good sign but not a requirement.
Worked example 3: a partial job
A and B together take 6 days. A alone takes 10 days. How long does B take alone, and how much of the job is left after 2 days of joint work?
- The LCM of 6 and 10 is 30, so the total work is 30 units.
- Together: 30 ÷ 6 = 5 units per day. A alone: 30 ÷ 10 = 3 units per day.
- B's rate is 5 − 3 = 2 units per day, so B alone takes 30 ÷ 2 = 15 days.
- After 2 days of joint work, 2 × 5 = 10 units are done, so 20 units remain. That is 20/30 = 2/3 of the job.
Notice that the first step used a time that was not an individual's time (6 days for the pair). Any stated time for the whole job can feed the LCM, whether it belongs to one worker or to a group.
Choosing a total that is convenient, not only minimal
The LCM is the smallest total that makes every rate a whole number. Any common multiple also works. You might prefer a larger one in two situations.
- A later step introduces a new divisor. If the problem later splits the work into 5 equal parts, or asks about 40% of the job, a total that is a multiple of 5 avoids fractions.
- A new time appears in the middle of the problem. If you realize you need a rate that comes from a time not in your LCM, you can scale everything up by a common factor.
Scaling is safe. If you double the total, every rate doubles and every time stays the same.
Pitfalls and edge cases
Using different totals for different workers
The most damaging mistake is to pick 12 units for A and 18 units for B because those are the stated times. Rates then become 1 and 1, which says both are equally fast, and that is false. The total must be the same for everyone in the same problem.
Mixing up the units of the answer
Dividing total by rate gives time in the same unit as the rate's time period. If the rate is in units per hour, the result is in hours. When a problem gives some times in days and others in hours, convert first.
Treating non-integer rates as errors
If the problem gives a time such as 7.5 days or 2 hours 40 minutes, the LCM of the stated times may not be an integer. In that case, convert to a common fractional form first, or switch back to the fraction approach for that problem. A time of 7.5 days equals 15/2 days, so the rate is 2/15 of the job per day, and a total of 15 units gives 2 units per day.
Forgetting that the LCM is for the times, not the rates
You take the LCM of times (12 and 18), not of rates. Taking the LCM of 3 and 2 after the fact gives 6, which is meaningless here.
Giving the total as the answer
The total is a scaffold. The final answer is almost always a time, a number of workers, or a fraction of the job, never "36". Reread the question before writing the result.
When the LCM method helps less
The method is best when times are given and a time is asked for. It is less direct in these cases.
- When the problem is about money, such as wages, you still choose a convenient total of work, but the final step divides money in proportion to units, as later chapters show.
- When times are large primes or awkward numbers, such as 13 and 17, the LCM is 221. The arithmetic is still whole numbers, but fractions may be as quick. Compare: 1/13 + 1/17 = 30/221, so the time is 221/30 days. The two routes agree, so pick the one that is cleaner for you.
Checking your result
Two quick sanity checks catch most errors.
- When people work together, the combined time must be shorter than the fastest individual time. In Example 1, 7.2 is below both 12 and 18. In Example 2, 4 is below 10.
- The combined rate must exceed the largest individual rate. In Example 2, 15 exceeds 6.
A third check is to multiply back: combined rate × answer time should equal the total.
Summary table
| Item | Fraction method | LCM method |
|---|---|---|
| Total work | 1 | LCM of the times |
| Rate of a 12-day worker | 1/12 | 3 units/day (total 36) |
| Combined rate | Add fractions | Add whole numbers |
| Final time | Reciprocal of combined rate | Total ÷ combined rate |
| Risk | Denominator errors | Using different totals |
Exercises
Exercise
A can finish a job in 15 days and B can finish it in 20 days. Using the LCM method, how long do they take together?
Show answer
The LCM of 15 and 20 is 60 units. A's rate is 60 ÷ 15 = 4 units per day and B's rate is 60 ÷ 20 = 3 units per day. Together they do 7 units per day, so the time is 60 ÷ 7 = 60/7 ≈ 8.57 days.
Exercise
A, B and C together can finish a job in 4 days. A alone takes 12 days and B alone takes 15 days. How long does C take alone?
Show answer
The LCM of 4, 12 and 15 is 60 units. The combined rate is 60 ÷ 4 = 15 units per day. A does 60 ÷ 12 = 5 and B does 60 ÷ 15 = 4, so C does 15 − 5 − 4 = 6 units per day. C alone takes 60 ÷ 6 = 10 days.
Exercise
A student picks 12 units of work for A (12 days) and 18 units for B (18 days), then adds the rates 1 and 1 to get 2 units per day. Explain what is wrong and give the correct combined time.
Show answer
The student used different totals, so the rates are not comparable. Using one total of 36 units, A does 3 and B does 2 units per day, giving 5 units per day. The correct time is 36 ÷ 5 = 7.2 days.