Teaser 2448: [Contractors]
From The Sunday Times, 23rd August 2009 [link]
Zachary, a contractor, wants to place a stone wall round a new development. He knows he can hire two masons for as long as it takes: Angus, who could do the job on his own in 21 days, and Bruce who could complete it on his own in 28 days. Together, they could finish the job in a certain number of days, but Zachary would like it done in three fewer days. So, as well as hiring Angus and Bruce for the whole time, he hires Chuck, who could do it on his own in 24 days, for the few days necessary to achieve his aim.
For how many days does he employ Chuck?
This puzzle was originally published with no title.
[teaser2448]



Jim Randell 7:57 am on 17 April 2026 Permalink |
If we say there is 1 unit of work to do, then:
We can calculate how long it would take A + B to do the job by combining their work rates:
So together A + B could complete the job in 12 days.
But Z wants the work to be completed in 9 days.
In 9 days A + B can do 9/12 (= 3/4) of the job, leaving C to do the remaining 1/4.
And: 1/4 = 6/24, so C would have to work for 6 days.
Solution: Chuck works for 6 days.
This Python program runs in 73ms. (Internal runtime is 64µs).
from enigma import (Rational, as_int, printf) Q = Rational() # work rates for A, B, C (A, B, C) = (Q(1, x) for x in [21, 28, 24]) # calculate number of days for A and B together d = as_int(Q(1, A + B)) printf("A + B = {d} days") # target number of days t = d - 3 printf("target = {t} days") # calculate number of extra days = x # (A + B) * 9 + C * x = 1 # => x = (1 - 9(A + B)) / C x = Q(1 - 9 * (A + B), C) printf("C works for {x} days")LikeLike