Two pipes can fill a cistern in 28 and 21 hours respectively and another pipe can empty 3 gallons of water per hour. All the three pipes working together can fill the empty cistern in 84 hours. What is the capacity (in gallons) of the cistern?
1
32
2
36
3
42
4
40