Level 5 is hard! Took me a while to solve it as well, but it's definitely doable. It's all about opening and closing hatches strategically to control how quickly you lose oxygen...