A pipe fills a barrel with vinegar in 20 minutes. A release valve on the barrel, used for drainage, can empty the barrel in 40 minutes. A new employee mistakenly left the drainage valve open as he turned on the pipe to fill a barrel. How long will it take to fill the barrel if the pipe is filling at the same time the valve is emptying?