All Exams Test series for 1 year @ ₹349 only
Question

Pipe A could fill an empty cistern in 18 hours while Pipe B can drain a filled cistern in 30 hours. When the cistern is empty, Pipe A is turned on for an hour and then turned off. Now Pipe B is allowed to drain out water from the cistern for an hour and then turned off. The pipes were alternately left open for an hour each time till the cistern was full. How much time did it take for the cistern to be full?

This question was previously asked in
RRB ALP/Technician 2018 CBT 2 Electronics Mechanic Question Paper (23-Jan-2019) (Shift 1)
The correct answer is 86 hours 48 minutes

Understanding the Cistern Filling Problem

This problem involves two pipes, Pipe A and Pipe B, working alternately to fill a cistern. Pipe A is a filling pipe, while Pipe B is a draining pipe. They operate for one hour each, in sequence, until the cistern is full.

Calculating Individual Pipe Rates

First, let's determine the amount of work each pipe can do in one hour:

  • Pipe A fills the cistern in 18 hours. Its filling rate per hour is \( \frac{1}{18} \) of the cistern.
  • Pipe B drains the cistern in 30 hours. Its draining rate per hour is \( \frac{1}{30} \) of the cistern.

Net Work Done in One Cycle

The pipes work alternately for one hour each. One full cycle consists of Pipe A working for 1 hour followed by Pipe B working for 1 hour. A cycle thus takes 2 hours.

In one cycle (2 hours):

  • Pipe A fills: \( \frac{1}{18} \)
  • Pipe B drains: \( \frac{1}{30} \)
  • Net work done in one cycle = Work done by A - Work done by B
  • Net work = \( \frac{1}{18} - \frac{1}{30} \)

To subtract the fractions, we find a common denominator, which is the Least Common Multiple (LCM) of 18 and 30. LCM(18, 30) = 90.

  • \( \frac{1}{18} = \frac{1 \times 5}{18 \times 5} = \frac{5}{90} \)
  • \( \frac{1}{30} = \frac{1 \times 3}{30 \times 3} = \frac{3}{90} \)

Net work done in one cycle = \( \frac{5}{90} - \frac{3}{90} = \frac{2}{90} = \frac{1}{45} \). So, in every 2-hour cycle, \( \frac{1}{45} \) of the cistern is filled.

Strategy for Filling the Cistern

The cistern needs to be filled completely, reaching a capacity of 1. Since Pipe B is a draining pipe, the cistern must be filled to its full capacity by Pipe A in the final step. This means the process cannot end with Pipe B operating.

We should calculate the work done by complete cycles (A then B) until the remaining unfilled portion is small enough that Pipe A can fill it in its final turn. Pipe A fills at a rate of \( \frac{1}{18} \) per hour. If Pipe A takes its final turn, it can fill up to \( \frac{1}{18} \) in that hour. The level just before Pipe A's final turn must be less than 1, such that the remaining part can be filled by A.

Let's find the number of full cycles (A then B) such that the cistern is nearly full, but the remaining part can be easily filled by Pipe A in its turn. Each cycle adds \( \frac{1}{45} \) capacity. After \( N \) cycles (which take \( 2N \) hours), the cistern capacity is \( \frac{N}{45} \).

After \( N \) full cycles, it's Pipe A's turn. For the cistern to be filled during A's turn, the capacity before A's turn must be \( L \) such that \( L + \text{Work done by A} \ge 1 \). The last operation must be A's. Let's calculate the number of cycles needed to reach a level such that the remaining portion is less than the amount A fills in 1 hour (\( \frac{1}{18} \)), but close to full.

We need to find \( N \) such that the level after \( N \) cycles, \( \frac{N}{45} \), plus the work A does in its turn, reaches 1. If the level after \( N \) cycles is \( \frac{N}{45} \), and it's A's turn. A works for a duration \( t_A \). The total filled amount is \( \frac{N}{45} + t_A \times \frac{1}{18} = 1 \). The time \( t_A \) taken by A must be \( \le 1 \) hour if this is the last turn. We need to find the number of full cycles \( N \) that brings the level to \( \frac{N}{45} \). After these \( N \) cycles (which take \( 2N \) hours), it's A's turn.

Let's test values for \( N \). We know the total time will be significant, likely involving many cycles.

  • After 1 cycle (2 hours), capacity = \( \frac{1}{45} \).
  • After 10 cycles (20 hours), capacity = \( \frac{10}{45} = \frac{2}{9} \).
  • After 40 cycles (80 hours), capacity = \( \frac{40}{45} = \frac{8}{9} \). Remaining = \( 1 - \frac{8}{9} = \frac{1}{9} \). \( \frac{1}{9} = \frac{10}{90} \). A fills \( \frac{1}{18} = \frac{5}{90} \) in 1 hour. To fill \( \frac{1}{9} \), A would take \( \frac{1/9}{1/18} = \frac{1}{9} \times 18 = 2 \) hours. This is more than 1 hour, so A cannot finish it in its single turn. We need more cycles.
  • Let's consider the state after \( N \) full cycles. The level is \( \frac{N}{45} \). It is A's turn. If A works for 1 hour, the level becomes \( \frac{N}{45} + \frac{1}{18} = \frac{2N+5}{90} \). If this level is still less than 1, B will work.
  • We need to find the largest \( N \) such that after \( N \) cycles and then A working for 1 hour, the level is still less than 1. \( \frac{2N+5}{90} \lt 1 \implies 2N+5 \lt 90 \implies 2N \lt 85 \implies N \lt 42.5 \). So, after 42 full cycles, and A working for 1 hour, the cistern is not yet full.
  • Let's calculate the state after 42 full cycles. Time = \( 42 \times 2 = 84 \) hours. Capacity after 42 cycles = \( \frac{42}{45} = \frac{14}{15} \).
  • After 84 hours, the cistern is \( \frac{14}{15} \) full, and it is Pipe A's turn (this is the start of the 85th hour). A works for 1 hour. Amount filled by A in the 85th hour = \( \frac{1}{18} \). Capacity after 85 hours (end of A's turn) = \( \frac{14}{15} + \frac{1}{18} = \frac{84}{90} + \frac{5}{90} = \frac{89}{90} \). The cistern is not yet full. It is B's turn (the 86th hour).
  • B works for 1 hour (the 86th hour). Amount drained by B = \( \frac{1}{30} \). Capacity after 86 hours (end of B's turn, completing the 43rd cycle) = \( \frac{89}{90} - \frac{1}{30} = \frac{89}{90} - \frac{3}{90} = \frac{86}{90} = \frac{43}{45} \).

After 43 full cycles (86 hours), the cistern is \( \frac{43}{45} \) full. It is now Pipe A's turn (the 87th hour). The remaining capacity to be filled is:

Remaining capacity = \( 1 - \frac{43}{45} = \frac{45 - 43}{45} = \frac{2}{45} \).

Pipe A fills at a rate of \( \frac{1}{18} \) per hour. The time taken by Pipe A to fill the remaining \( \frac{2}{45} \) capacity is:

Time = \( \frac{\text{Remaining Capacity}}{\text{Rate of A}} = \frac{2/45}{1/18} = \frac{2}{45} \times \frac{18}{1} = \frac{36}{45} \).

Simplify the fraction \( \frac{36}{45} \) by dividing the numerator and denominator by their greatest common divisor, 9:

\( \frac{36}{45} = \frac{36 \div 9}{45 \div 9} = \frac{4}{5} \) hours.

This time, \( \frac{4}{5} \) hours, is less than 1 hour, so Pipe A completes the filling in this turn, and it is the final operation.

Calculating Total Time

The total time taken is the sum of the time for the complete cycles and the time taken by Pipe A in its final turn.

Total time = Time for 43 cycles + Time for A's final turn

Total time = 86 hours + \( \frac{4}{5} \) hours.

Convert \( \frac{4}{5} \) hours to minutes:

\( \frac{4}{5} \times 60 \) minutes = \( 4 \times 12 \) minutes = 48 minutes.

Total time = 86 hours 48 minutes.

Summary of Steps

  1. Calculate the filling rate of Pipe A per hour.
  2. Calculate the draining rate of Pipe B per hour.
  3. Calculate the net work done by both pipes in one 2-hour cycle.
  4. Determine the number of full cycles required until the remaining capacity can be filled by Pipe A in its turn. This involves calculating the state after a certain number of full cycles.
  5. Calculate the time taken for these full cycles and the capacity level reached.
  6. Calculate the remaining capacity.
  7. Calculate the time Pipe A takes to fill this remaining capacity.
  8. Add the time for full cycles and the final filling time to get the total time.
Event Duration Work Done Cistern Level
Pipe A (1st hr) 1 hr \( +\frac{1}{18} \) \( \frac{1}{18} \)
Pipe B (2nd hr) 1 hr \( -\frac{1}{30} \) \( \frac{1}{18} - \frac{1}{30} = \frac{1}{45} \) (End of Cycle 1)
... (42 more cycles) \( 42 \times 2 = 84 \) hrs \( 42 \times \frac{1}{45} = \frac{14}{15} \) (cumulative net) \( \frac{14}{15} \) (After 42 cycles, Total Time 84 hrs)
Pipe A (Turn after 42 cycles, 85th hr) 1 hr \( +\frac{1}{18} \) \( \frac{14}{15} + \frac{1}{18} = \frac{84+5}{90} = \frac{89}{90} \) (After 85 hrs)
Pipe B (Turn after A, 86th hr) 1 hr \( -\frac{1}{30} \) \( \frac{89}{90} - \frac{1}{30} = \frac{89-3}{90} = \frac{86}{90} = \frac{43}{45} \) (End of 43rd Cycle, Total Time 86 hrs)
Pipe A (Final turn, start of 87th hr) \( \frac{4}{5} \) hr (calculated) \( +\frac{2}{45} \) (remaining work) \( \frac{43}{45} + \frac{2}{45} = \frac{45}{45} = 1 \) (Full)
Total Time \( 86 + \frac{4}{5} \) hrs = 86 hrs 48 mins

Revision Table: Key Concepts for Alternating Pipe Problems

Concept Explanation
Individual Rate The fraction of work (filling or draining) a pipe does in one unit of time (e.g., per hour). Rate = 1 / Time taken for full work.
Net Rate in a Cycle For pipes working alternately, calculate the combined effect (filling - draining) over one full cycle of operation for all pipes involved in the cycle.
Handling Draining Pipes Draining pipe rates are subtracted from filling pipe rates when calculating net work.
Final Step Consideration When a draining pipe is involved, the process must end with a filling pipe operation to reach full capacity. Calculate full cycles until the remaining work is manageable by the filling pipe in its turn.
Work and Time Relation Time = Work / Rate. This is used to find the time taken for the final part of the work.

Additional Information: Work and Time Principles

Problems involving pipes filling or draining a cistern are applications of work and time principles. The cistern represents the total work to be done (filling 1 unit of capacity). The pipes are the workers, and their rates are the amount of work they do per unit time.

  • If a pipe fills a cistern in \( T \) hours, its filling rate is \( \frac{1}{T} \) cistern per hour.
  • If a pipe drains a cistern in \( T \) hours, its draining rate is \( \frac{1}{T} \) cistern per hour.
  • When multiple pipes work simultaneously, their rates are added (filling rates) or subtracted (draining rates) to find the combined rate.
  • When pipes work alternately, the work done is calculated step-by-step or by finding the net work done over a full cycle of operations.
  • The total work done is typically normalized to 1 (representing the full cistern).

Understanding the sequence of operations and the nature of each pipe (filling vs. draining) is crucial for setting up the problem correctly, especially in alternating scenarios where the last operation determines whether the cistern can reach its full capacity.

Was this answer helpful?

Similar Questions

  1. Pipe A can fill an empty cistern in 6 hours while along with Pipe B it can fill it up in 4 hours. Only Pipe B is on for an hour after which Pipe A is also turned on. How much time will it take in all to fill up the cistern?
  2. 15 pipes, each having the same diameter, can fill a cistern in 12 minutes. How long will it take for 6 pipes, each with double the original diameter, to fill the same cistern at the same speed of the flow?

  3. Two pipes namely A and B can fill a tank in 25 minutes and half an hour respectively and a pipe C can empty 3 gallons per minute. All three pipes working together can fill the tank in 15 minutes. The capacity of the tank is:

  4. Two pipes X and Y can individually fill a tank in 48 and 72 minutes respectively. If they are opened simultaneously, how long would it take for the tank to fill?

  5. Two taps take 10 min and 15 min, respectively, to fill an empty pool. The first tap was ON for 4 min, after which it stopped working. How much time will the second tap take to fill the pool?

  6. P, Q and R are channels which discharge solutions A, B, C respectively in a tank. When the tank is empty and all the three channels are opened what is the proportion of the solution C in the tank after 3 minutes, if the channels P, Q and R can fill the tank from empty to full in 30 minutes and 20 minutes and 10 minutes respectively when they are opened one at a time.

  7. Two pipes fill a tank when working individually in 25 and 40 hours, respectively while a third pipe can drain the filled tank in 16 hours. If all the three pipes are turned on at the same time when the tank is empty, how long will it take to fill the tank completely?
  8. Two pipes A and B can fill an empty cistern in 32 and 48 hours, respectively. Pipe C can drain the entire cistern in 64 hours when no other pipe is in operation. Initially, when the cistern was empty Pipe A and Pipe C were turned on. After a few hours, Pipe A was turned off and Pipe B was turned on instantly. In all it took 112 hours to fill the cistern. For how many hours was Pipe B turned on?

  9. A tanker can fill a cistern in 12 hours. After half the cistern is filled, 2 more similar tankers are opened. What is the time taken to fill the remaining half of the tank?

  10. Pipes A, B and C are attached to an empty cistern. While the first two can fill the cistern in 4 and 10 hours, respectively, the third can drain the cistern, when filled, in 6 hours. If all the three pipes are opened simultaneously when the cistern is three-fifth full, how many hours will be needed to fill the cistern?


Important Questions from Pipe and Cistern

  1. Pipe P can fill $\frac{2}{3}$ part of a tank in 16 hours, and pipe Q can fill $\frac{5}{6}$ part of the same tank in 20 hours. Both P and Q were kept open for 2 hours, then both were closed. Pipe R alone was then opened and it emptied the water in the tank in 8 hours. Pipes P, Q and R together can fill the empty tank in:

  2. Pipe A can fill a tank in 18 hours, pipe B can fill the same tank in 30 hours and pipe C can fill the same tank in 18 hours. The time taken by them to fill the same tank if they operate together is::
  3. Pipe P can fill $\frac{2}{3}$ part of a tank in 24 hours, and pipe Q can fill $\frac{2}{3}$ part of the same tank in 16 hours. Both P and Q were kept open for 4 hours, then both were closed. Pipe R alone was then opened and it emptied the water in the tank in 5 hours. Pipes P, Q and R together can fill the empty tank in:

  4. Pipe P can fill $\frac{5}{7}$ part of a tank in 30 hours, and pipe Q can fill $\frac{2}{5}$ part of the same tank in 28 hours. Both P and Q were kept open for 7 hours, then both were closed. Pipe R alone was then opened and it emptied the water in the tank in 8 hours. Pipes P, Q and R together can fill the empty tank in:
  5. Pipe P can fill $\frac{3}{8}$ part of a tank in 21 hours and pipe Q can fill $\frac{2}{7}$ part of the same tank in 16 hours. Both P and Q were kept open for 2 hours, then both were closed. Pipe R alone was then opened and it emptied the water in the tank in 3 hours. Pipes P, Q and R together can fill the empty tank in:

Need Expert Advice?
Upcoming Exams
RRB Staff Nurse
November 23, 2026
RRB Paramedical
November 23, 2026
Test Series
RRB ALP img
Railways
RRB ALP 2026 Mock Test series
1035 Tests 1 Tests Free
1787 Attempts
4.3(259)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App