The input burst = 100 gal/min = 1.667 gal/sec
The output rate = 5 gal/min = 0.0833 gal/sec
During the first 12 seconds, liquid left = (input – output) *12 = (1.667-0.0833)*12 = 19.004 gal
During the remaining 48 seconds, there is no input, so output = 0.0833*48 = 3.998 gal
Total liquid left = 19.004-3.998 = 15.006 gallons of liquid