Approach hintTry it first, then revealHide
Binary search the finishing time T. A worker handles up to T of their own tasks, and spare hours absorb other tasks at two hours each; T is feasible when the total spare capacity covers every task above a worker's limit.