In The Scorch Trials, Thomas and the other Gladers are rescued and brought to a safe dormitory, only to find out that it was all a hoax. Teresa is taken and given to Group B, an all-girl experiment that has been run exactly the same as the Gladers (Group A). Phase 2 of the Trials begins as 'The Rat Man' (known as Janson in The Death Cure) from WICKED tells them they have two weeks to travel 100 miles of wasteland, in order to reach a safe haven and be given a cure for the Flare. On the way, the Gladers meet Brenda and Jorge, who say they are infected with the Flare and make a deal to reach the safe haven together. In the end, about half of Group A and Group B make it to the safe haven, where they have to defeat new and even more hideous monsters before finally being transported to safety.