The figure shows a rectangular tank measuring 49 cm by 27 cm by 40 cm. It was 12 filled with water at first. Glen turned on a tap and let water flow into the tank at a rate of 2.94 ℓ per minute. After 19 minutes, he turned off the tap. How much water had overflowed? Express your answer in ℓ.