Pipe A can fill the tank in 2 hours and pipe B can fill the tank in 3 hours. If both the pipes are open, in how many hours will the tank be filled?