Two pipes A and B can separately fill a tank in 12 and 15 minutes respectively. A third pipe C can drain off 45 liters of water per minute. If all the pipes are opened, the tank can be filled in 15 minutes. What is the capacity of the tank?

Two pipes A and B can separately fill a tank in 12 and 15 minutes respectively. A third pipe C can drain off 45 liters of water per minute. If all the pipes are opened, the tank can be filled in 15 minutes. What is the capacity of the tank?

A. 480 liters
B. 540 liters
C. 600 liters
D. 675 liters
Explanation:
1/12 + 1/15 – 1/x = 1/15
x = 12
12 * 45 = 540