Pipes and Cisterns Model 2: A Pipe Closed Part-Way

Pipes and Cisterns · 25 min

Aptitude · Pipes and Cisterns · Model 2

Split the work by pipe, not by time

When one pipe is shut before the tank is full, the instinct is to hunt for how full it was at that moment. You never need to know. The pipe that stays open works the whole time, and what is left over belongs to the pipe that left.

Set the target time and find the closing moment
The staying pipe’s share is its rate times the total time. The rest is the leaving pipe’s share, and dividing that by its rate gives the closing moment.

01 The idea

Two pipes, two totals, one subtraction

A cistern is fed by A, which alone takes 25 hours, and B, which alone takes 20. Both are opened together, but A is closed at some point and the tank is still full after exactly 12 hours. When was A closed?

The temptation is to think in stages: work out how full the tank was when A shut, then hand the rest to B. That works, but it needs a variable in the middle and it is where sign errors creep in. There is a cleaner reading. B was never closed, so B ran for the full 12 hours, and B’s contribution is one multiplication.

Take the tank as LCM(25, 20) = 100 units, so A is 4 units an hour and B is 5. B ran 12 hours, so B delivered 5 × 12 = 60 units. The tank is full at the end, so A must have delivered the other 40. At 4 units an hour that is 10 hours, and A was closed after 10 hours.

Notice what never appeared: the fraction of the tank that was full at hour 10, and any equation with an unknown in it. The work split by pipe rather than by time, and that is the move that makes this model quick. Every question in it — “close A after how long”, “find X”, “how many more minutes” — is this same subtraction read from a different end.

The pipe that is never closed works for the whole stated time. Multiply, subtract from the tank, and divide the remainder by the pipe that left.
The staying pipeThe pipe that is open from start to finish. Its total contribution is rate × total time — no stages, no fractions.
The leaving pipeThe pipe that is shut part-way. Its contribution is whatever the tank still needed, and its open duration is that share divided by its rate.
Feasible windowThe stated total time has to be achievable. It cannot be shorter than the time with both pipes open throughout, and it cannot be as long as the staying pipe alone would take — at that point the leaving pipe is not needed at all.

02 Worked example

A takes 25 hours, B takes 20, and it is full in 12

This is the model’s standard shape. Pipe A alone fills a tank in 25 hours and pipe B alone in 20 hours. Both are opened together. After how long must A be closed so that the tank is exactly full at the 12-hour mark?

1
Fix the tank and name the pipe that staysB is never mentioned as closing, so B is the staying pipe and A is the one that leaves. Getting this the wrong way round is the only real mistake available here.tank = LCM(25, 20) = 100 units  ⇒  A = 4/h, B = 5/h
2
B runs the whole 12 hoursOne multiplication, because nothing interrupts B.B delivers 5 × 12 = 60 units
3
Whatever is left is A’s shareThe tank has to be full at the end, so the shortfall is exactly what A brought in before it was shut.100 − 60 = 40 units for A
4
Divide A’s share by A’s rateA moves 4 units an hour, so 40 units took ten of them.40 / 4 = 10 hours  ⇒  A is closed after 10 hours
5
Check it backTwo products that must add to the whole tank. Five seconds, and it catches the swapped-pipe error.4×10 + 5×12 = 40 + 60 = 100 ✓

A ran for 10 of the 12 hours and was shut for the last 2. If you want the stage picture, it is there: at hour 10 the tank held 4×10 + 5×10 = 90 units, and B cleared the last 10 units in the remaining 2 hours. But that picture was the consequence of the answer, not the route to it — which is the point of the model.

03 The method

One equation, and the window it has to sit in

The method is a single line. The care goes into which pipe is which, and into checking that the stated total time is even possible.

With a total time T, a staying pipe of rate rstay and a leaving pipe of rate rgo: closing time = (tank − rstay×T) / rgo. The other common wording — both open for k, then one shuts, how much longer — is the same line read forwards: (tank − (rstay + rgo)×k) / rstay.
Check the window before you calculate. The stated total time must be at least the time with both pipes open throughout (here 100/9 ≈ 11.11 hours) and strictly less than the staying pipe’s own time (here 20 hours). Below the window nothing works; at or above the top of it the leaving pipe was never needed and the “closing time” comes out as zero or negative.
WordingWhat stays openWhat you compute
“Close A so it fills in T”B, for all of TA’s share, then A’s time
“After X hours Q is closed”P, for all of TP’s share, then Q’s share
“Both for k, then one off”the survivorleftover / survivor’s rate
“A and B closed, C finishes”C, for all of Tthe joint phase length
T below both-open timeimpossibleno closing time exists
T at or above the stayer’s own timedegeneratethe leaver was never needed

05 Cheat sheet

Model 2 on one page

Checked against A 25 hours, B 20 hours, tank full in 12 — the sum from section 02.

StepRuleOn A 25, B 20, T 12
TankLCM of the solo timesLCM(25,20) = 100 units
Ratestank / solo timeA = 4/h, B = 5/h
Stayer’s sharerate × T5 × 12 = 60 units
Leaver’s sharetank − stayer’s share100 − 60 = 40 units
Closing timeshare / leaver’s rate40 / 4 = 10 hours
Lower bound on Ttank/(rA+rB)100/9 ≈ 11.11 hours
Upper bound on Tstayer’s solo time20 hours
Never solve for the fraction filledThe share of the tank at the moment of closing is a consequence of the answer, not a step towards it. Writing it as an unknown adds an equation you do not need.
Name the staying pipe firstRead the question until you are certain which pipe runs the whole time, and write that down before any arithmetic. Swapping them gives a plausible wrong answer, which is the worst kind.
The window is a free checkBoth-open time at the bottom, the stayer’s solo time at the top. A closing time outside 0 to T means you have the pipes the wrong way round.

06 Where & why

Where this shows up

This is the model that separates candidates who have understood rates from candidates who have memorised ab/(a+b), which is why it appears so often at the harder end of a section.

SSC CGL · RRB
“After how much time should A be closed?”

The archetype. One multiplication, one subtraction, one division — and no algebra at all if you spot the staying pipe.

Bank PO
“Find the value of X”

Same shape, worded so the pipe that closes is the one you would not expect. The wording is the difficulty; the arithmetic is identical.

TCS NQT · Wipro
“In how many MORE minutes?”

Both pipes for a stated stretch, then one shuts, and the answer wanted is the extra time only. Reading “more” and returning the total is a standard way to lose the mark.

Three pipes with a phase change
A and B closed, C finishes alone

The same subtraction with C as the stayer. Its rate is small, so the leftover it has to clear is what fixes the joint phase.

Two habits carry this model. Name the staying pipe in words before you write a number, and read the last line of the question again before answering — “how much longer” and “what is the total time” are different numbers and both get asked.

07 Interview questions

What gets asked

Ten, from the method through to the two ways the question can be stated with no valid answer.

How do you handle a pipe that is closed before the tank is full?
Work out the contribution of the pipe that is never closed — its rate times the whole stated time — and subtract that from the tank. The remainder is what the closed pipe delivered, and dividing it by that pipe’s rate gives how long it was open.
A fills in 25 hours, B in 20, and the tank is full in 12. When is A closed?
After 10 hours. Tank 100 units, so A is 4 an hour and B is 5. B ran all 12 hours for 60 units, leaving 40 for A, and 40/4 = 10 hours.
Why not work out how full the tank was when the pipe closed?
You can, and it gives the same answer, but it needs an unknown and an equation in the middle. Splitting the work by pipe instead of by time gets you there in one subtraction, and there is no intermediate quantity to get wrong.
P fills in 12 hours and Q in 36. Both open, Q is closed after X hours, total time 10 hours. Find X.
6 hours. Tank 36 units, so P is 3 an hour and Q is 1. P is the stayer and ran all 10 hours for 30 units, leaving 6 for Q, and 6/1 = 6 hours.
Two taps fill in 20 and 25 minutes. Both run for 5 minutes, then the second is shut. How much longer?
11 minutes. Tank 100 units, rates 5 and 4. In 5 minutes they put in 45 units, leaving 55 for the first tap alone, and 55/5 = 11 minutes. Note the question asks for the extra time, not the total of 16.
Which pipe do you call the staying pipe?
The one the question never closes. It is worth writing that down in words before any arithmetic, because swapping the two gives an answer that looks reasonable. In “close A so the tank fills in 12 hours”, B is the stayer even though A is the pipe being asked about.
A, B and C fill in 4, 8 and 10 hours. All three open, then A and B are closed and C finishes. Total 2 hours 30 minutes. How long were all three open?
2 hours. Tank 40 units: A 10, B 5, C 4, so 19 together. C is the stayer, so with the joint phase as x, 19x + 4(2.5 − x) = 40, giving 15x = 30 and x = 2.
Can the stated total time be anything at all?
No. It has to be at least the time with both pipes open the whole way — 100/9 hours, about 11.11, for A 25 and B 20 — and strictly less than the staying pipe’s solo time of 20 hours. Outside that range the question has no sensible closing time.
What happens if the stated total equals the staying pipe’s own time?
The closing time comes out as zero: the stayer manages the whole tank in that time by itself, so the other pipe was never needed. Beyond it the arithmetic goes negative, which is the algebra reporting that the question is inconsistent.
Is this model actually harder than the plain two-pipe one?
No, but it is longer to read, and that is what catches people. The arithmetic is one multiplication more than Model 1. The failure mode is almost always misreading which pipe closes or which time the answer wants, not the sum itself.

08 Practice problems

Six on the phase change

For each one, write down which pipe stays open before you touch a number. Two of these ask for extra time rather than total time — read the last line twice.

Find X

Easy
Pipe P alone fills a cistern in 12 hours and pipe Q alone in 36 hours. Both are opened together and after X hours Q is closed. The cistern is full after a total of 10 hours. Find X.
Follow-up
The pipe named in the question is the one that leaves, so the multiplication belongs to the other one. Reversing them gives a clean-looking wrong answer.
Show the hint
P ran the whole 10 hours. Work out what P delivered before anything else.

How much longer?

Easy
A tank can be filled by one tap in 20 minutes and by another in 25 minutes. Both are kept open for 5 minutes and then the second is turned off. In how many MORE minutes is the tank completely filled?
Follow-up
The phase length is given and the closing time is not, so the subtraction runs forwards instead of backwards. And the answer wanted is the extra time, not the total.
Show the hint
Tank 100 units. Both pipes for 5 minutes, then the first alone clears the rest.

Three pipes, two closed

Medium
A cistern has inlets A, B and C filling it alone in 4, 8 and 10 hours. All three are opened together; after X hours A and B are closed and C finishes the job. The total time is 2 hours 30 minutes. Find X.
Follow-up
Two pipes leave together, so treat them as one combined leaver. C is the stayer even though it is the slowest pipe, which is what makes the leftover small.
Show the hint
Tank 40 units, so the three together are 19 an hour and C alone is 4.

Turned off mid-hour

Medium
Two pipes can fill a tank in 6 and 8 hours. Both are opened together, but after 1 hour 30 minutes the 6-hour pipe is turned off. Find the total time to fill the tank.
Follow-up
The phase boundary is not a whole hour, so the units come out fractional even though the times are tidy. The total answer happens to be a round number, which is a useful reassurance rather than luck.
Show the hint
Tank 24 units. 1.5 hours at the joint rate first, then the 8-hour pipe alone.

The slow tap finishes

Medium
A tank can be filled by one tap in 20 minutes and by another in 60 minutes. Both are kept open for 10 minutes and then the FIRST tap is shut off. After that, in how many minutes will the tank be completely filled?
Follow-up
The quick tap is the one that leaves, so the slow tap has to clear a third of the tank on its own. The answer is longer than the whole joint phase, which surprises people.
Show the hint
Tank 60 units: 3 and 1 a minute.

Which totals are even possible?

Hard
Pipe A alone fills a tank in 25 hours and pipe B alone in 20 hours, and A is to be closed part-way so the tank is full at exactly T hours. Find every whole number of hours T for which a positive closing time exists, and give the closing time at each end of that range.
Follow-up
The question is about the feasible window rather than a single answer, so you have to turn both bounds into inequalities. One bound is open and one is closed, and saying which is which is the actual work.
Show the hint
The fastest possible total is with both pipes open the whole way, and the slowest useful one is B on its own.