Work as a rate
If a worker finishes a job in t units of time, the rate is 1/t of the job per unit. The whole job is "1".
Add rates when working together
You add rates, never times.
Worked logic
A finishes in 4 hours (rate ¼), B in 6 hours (rate ⅙).
The together-time is always less than the faster worker's time — a built-in sanity check.
Filling and draining
A drain works against a fill: subtract its rate.