If one man working one hour is the basic unit of effort, then 12 men working 8 hours a day for 10 days spend 12 × 10 × 8 = 960 man-hours. The same job always needs the same number of man-hours, whoever does it, as long as everyone works at the same rate. That single idea gives the chain formula:
M1 × D1 × H1 ÷ W1 = M2 × D2 × H2 ÷ W2
M = number of workers, D = days, H = hours per day, W = amount of work (walls, metres, chairs, or simply 1 for "the job").
Write down what you know for both groups, leave the unknown, and cross-multiply. If W is the same on both sides, it cancels.
Worked example 1: same job, different team
12 men working 8 hours a day build a wall in 10 days. How long will 20 men take working 6 hours a day? D2 = 12 × 10 × 8 ÷ (20 × 6) = 960 ÷ 120 = 8 days.
Worked example 2: how many workers?
24 men working 9 hours a day finish a job in 20 days. To finish it in 15 days at 8 hours a day, M2 = 24 × 20 × 9 ÷ (15 × 8) = 4,320 ÷ 120 = 36 men.