A tank with a square base of side 50 cm was half-filled with water at first. At 10.00 am, Tap X with water flowing in at a rate of 2 litres per minute and Tap Y with water draining water out of the tank at a rate of 0.6 litres per minute were turned on simultaneously. At 10.45 am, the tank was filled to the brim. Find the height of the tank.