Monsters University

Michael "Mike" Wazowski, a young monster, gets inspired to become a scarer (a monster who enters the human world at night to scare children and harvest their screams for energy) when he grows up after visiting Monsters Inc., Monstropolis' most profitable scaring company, on a school field trip. Eleven years later, Mike is a first-year scare major at Monsters University, where he meets fellow monster James P. "Sulley" Sullivan. Mike studies hard, while the privileged Sulley, coming from a family of talented scarers, relies only on his natural ability and begins to falter. As the semester progresses, Mike and Sulley attempt to join a fraternity, but only Sulley is accepted into Roar Omega Roar, the strongest fraternity on campus. At the semester's final exam, a fight between the two causes them to accidentally break Dean Abigail Hardscrabble's cherished Scream Can. Hardscrabble promptly fails both of them immediately, stating that Sulley does not study enough, and Mike is not scary enough.
Wanting to prove himself, Mike enters the university's "Scare Games" and makes a wager with Hardscrabble to reinstate him and his team to the scare program if they win, but Mike must leave the university if they lose. He joins a group of misfits named Oozma Kappa, the weakest fraternity on campus, but they are denied entry to the Games for being one team member short. Sulley subsequently joins them, seeing the competition as his ticket back into the scare program. Oozma Kappa finish last in the first challenge, but are saved from elimination after another team is disqualified for cheating. Oozma Kappa subsequently improve gradually due to Mike's training and intricate knowledge of scaring, and they advance through each following challenge, finishing just behind competition favourites Roar Omega Roar. In the final round, they defeat Roar Omega Roar with a decisive final scare by Mike in the simulation bedroom. However, Mike soon discovers that he only won because Sulley secretly rigged the machine to improve his score.
Determined to prove he can become a scarer, Mike breaks into the school's door lab and enters a door to the human world leading to a summer camp, but he is unable to scare a cabin full of children and runs off into the woods. Meanwhile, Roar Omega Roar offers to reinstate Sulley, but he refuses, instead confessing to Hardscrabble that he cheated, just as she is alerted of Mike's break-in. Realizing what happened, Sulley defies Hardscrabble and enters the same door to find Mike. After reconciling, they try to return, but are unable to exit after Hardscrabble deactivates the door while waiting for the authorities to arrive. Pursued by camp rangers, Mike realizes that the only way to escape is to generate enough scream energy to power the door from their side. Working together, Sulley and Mike terrify the camp rangers and generate an overwhelming amount of scream energy to return to the lab seconds before the device overloads and explodes in front of Hardscrabble.
Mike and Sulley are led away by the CDA and are expelled from the university as a result of their actions, but the other members of Oozma Kappa are accepted into the scare program the next semester, as Hardscrabble was impressed by their performances in the scare games. As Mike leaves on the bus, Sulley runs after him to raise his spirits. Hardscrabble then appears and wishes the two luck, claiming they were the first students to have surprised her. The two take jobs in the mail room of Monsters, Inc., eventually working their way up to join the Scarer Team and setting the events of Monsters, Inc. in motion.

Question: What is the only way for Mike and Sulley to escape?
Answer: Generate enough scream energy to power the door from their side