- Advanced
- About 16 min
- 5 practice questions
Alternate opening: pipes that take turns
Solve tanks filled by pipes opened in turns, hour by hour, including cycles with an outlet and the last-cycle overshoot trap.
If something looks wrong, please tell us.
Alternate-opening questions are where many well-prepared students lose marks. The pipes do not run together; they take turns, usually one hour each. The method is simple, but the ending needs care, because the tank may fill in the middle of a cycle, and with an outlet in the cycle the naive answer is almost always wrong.
The cycle method
- Take the capacity as the LCM of the times and find each pipe's units per hour (outlets negative).
- One cycle is one full round of turns. Find the net units gained per cycle and its length in hours.
- Run whole cycles until the tank is close to full, then finish turn by turn, stopping the moment it reaches the capacity.
Worked example 1: two inlets in turn
Pipe A fills a tank in 6 hours and pipe B in 12 hours. They are opened alternately for one hour each, starting with A. Capacity = 12 units; A = 2, B = 1. One 2-hour cycle gives 3 units. After 3 cycles (6 hours) the tank has 9 units; A's hour brings it to 11 and B's hour to 12. The tank is full after 8 hours.
Worked example 2: who starts matters
Pipe A fills a tank in 4 hours and pipe B in 6 hours, taking turns of one hour. Capacity = 12 units; A = 3, B = 2; a cycle gives 5 units. After 2 cycles (4 hours) there are 10 units and 2 are left. If A started, it is A's turn: 2 ÷ 3 = 2/3 hour = 40 minutes, total 4 hours 40 minutes. If B started, it is B's turn: 2 ÷ 2 = 1 hour, total 5 hours. Always note which pipe opens first.
Worked example 3: inlet and outlet in turn (the overshoot trap)
Inlet A fills a tank in 6 hours and outlet B empties it in 10 hours. They are opened alternately for one hour each, starting with A, on an empty tank. Capacity = LCM(6, 10) = 30 units; A = +5, B = −3, so a 2-hour cycle gains 2 units. The naive answer is 30 ÷ 2 = 15 cycles = 30 hours. But the tank fills during an A-hour as soon as the level before that hour is at least 30 − 5 = 25 units. After 12 cycles (24 hours) the level is 24: A takes it to 29, not full, and B drops it to 26 at 26 hours. Now A needs only 4 units: 4 ÷ 5 = 0.8 hour = 48 minutes. The tank is full after 26 hours 48 minutes, not 30 hours.
Worked example 4: one pipe throughout, one in alternate hours
Pipe A (12 hours) runs all the time; pipe B (6 hours) is open only in the 1st, 3rd, 5th... hours. Capacity = 12 units; A = 1, B = 2. Odd hours add 3 units, even hours add 1, so every 2 hours add 4. After 4 hours: 8 units. Hour 5 adds 3 (11 units) and hour 6 adds 1 (12 units). Full after 6 hours.
| Hour | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Units added | 3 | 1 | 3 | 1 | 3 | 1 |
| Level | 3 | 4 | 7 | 8 | 11 | 12 |
Find the units per cycle, but finish turn by turn. With an outlet in the cycle, the tank fills during an inlet's turn once the level before that turn is at least capacity minus that inlet's units.
Key takeaways
- Never divide the capacity by the units per cycle and stop: check the last cycle.
- The last turn is often a fraction of an hour; convert it to minutes.
- Starting order changes the answer when the last turn is partial.
- With an outlet, find the level an inlet needs to start from to finish in its own hour.
Check your understanding
-
1. Pipe A fills a tank in 8 hours and pipe B in 12 hours. They are opened alternately for one hour each, starting with A. When is the tank full?
- 9 h 30 min
- 9 h 36 min
- 10 h
- 9 h 20 min
Show answer
Answer: A. Capacity = 24 units; A = 3, B = 2; a 2-hour cycle gives 5. After 4 cycles (8 hours): 20 units. A's hour: 23 units (9 hours). B needs 1 unit at 2 per hour: half an hour. Total 9 hours 30 minutes.
-
2. The same two pipes (A fills in 8 hours, B in 12 hours) take one-hour turns, but this time B starts. When is the tank full?
- 9 h 30 min
- 10 h
- 9 h 40 min
- 9 h 45 min
Show answer
Answer: C. Capacity = 24 units; B = 2, A = 3. After 4 cycles (8 hours): 20 units. B's hour: 22 units (9 hours). A needs 2 units at 3 per hour: 2/3 hour = 40 minutes. Total 9 hours 40 minutes.
-
3. Inlet A fills a tank in 5 hours and outlet B empties it in 10 hours. They are opened alternately for one hour each, starting with A, on an empty tank. When is the tank first full?
- After 20 hours
- After 18 hours
- After 19 hours
- After 17 hours
Show answer
Answer: D. Capacity = 10 units; A = +2, B = −1; each 2-hour cycle gains 1. A finishes in its own hour once the level before it is at least 8. After 8 cycles (16 hours) the level is 8, and A's next hour brings it to 10. Full after 17 hours (not 20).
-
4. Pipe A, which fills a tank in 20 hours, runs all the time. Pipe B, which fills it in 10 hours, is open only in the 1st, 3rd, 5th... hours. When is the tank full?
- After 9 hours
- After 10 hours
- After 10.5 hours
- After 8 hours
Show answer
Answer: B. Capacity = 20 units; A = 1, B = 2. Odd hours add 3 units, even hours add 1, so 4 units every 2 hours. After 8 hours: 16. Hour 9: 19. Hour 10: 20. Full after 10 hours.
-
5. Pipes A, B and C fill a tank in 6, 8 and 12 hours. They are opened one at a time in the order A, B, C, one hour each, repeating. When is the tank full?
- 7 h 40 min
- 8 h
- 7 h 30 min
- 8 h 20 min
Show answer
Answer: A. Capacity = 24 units; A = 4, B = 3, C = 2; a 3-hour cycle gives 9. After 2 cycles (6 hours): 18. A's hour: 22 (7 hours). B needs 2 units at 3 per hour: 40 minutes. Total 7 hours 40 minutes.
Sign in to keep track of the lessons you finish.