An empty rectangular tank, 40 cm long and 25 cm wide, contains 2 metal cubes of edge 10 cm. the tank is being filled with water flowing from a tap at a rate of 10 liters per minute. If it takes 3 minutes to fill up the tank, find the height of the tank.