For the maze to not collapse and so that both trapped dots can survive, there's one mandatory task: each dot must be able to enter the dream of the other dot in every single sleep cycle. But you can only enter the other's dream if that one has given you permission to do so. This makes each of them not only responsible for the other's survival but also for their own survival. Cooperate and you will survive.