<P> The film begins with a flashback to a young boy, Thomas, being dropped off by his mother and taken in by scientist Ava Paige and troops of the organization called WCKD, along with other abandoned children . WCKD places the children in a walled maze in a glade as part of its scientific testing . Years later, shortly after being rescued from the Maze, Thomas and the remaining Gladers--Teresa Agnes, Newt, Minho, Frypan, and Winston--are taken to a facility run by Mr. Janson . He explains that the facility is a safe haven, protecting them from WCKD, the Flare virus and the "Cranks", and provides them clothes, food, and sanitation, where other survivors of multiple mazes are also present . Thomas becomes curious about their activities and manages to find out what is really happening behind the closed doors . With help from Aris, the first maze survivor to end up in the facility, Thomas discovers that WCKD's leader, Ava, is still alive and that Mr. Janson is really working for WCKD, when they discuss experiments on the Immunes and that Janson has yet to find the Right Arm, a resistance group located in the mountains . The group, including Aris, escapes the facility, and Janson orders his WCKD troops to track them down, as they find themselves in the deserted outside world--the Scorch . </P> <P> The group arrive at an abandoned marketplace, where they first encounter the Cranks, humans zombified by the Flare virus . In the process, Winston gets infected by one of them . When morning comes, they find the remains of the city in ruins and that WCKD is still searching for them . Winston's infection gets worse, forcing the rest of the group to leave him alone to die by shooting himself, preventing his transformation . The group continues to venture the desert until one night, while sleeping, Thomas wakes to discover a civilization off in the distance . As a thunderstorm emerges, they run to an abandoned facility to take shelter . Minho gets struck by the lightning on the way but survives . They manage to enter the place, only to find out that the facility was filled with chained Cranks . The group meets Brenda and Jorge, who leads a dangerous band of survivors and have used the Cranks as their own guard dogs . When the two find that the group had come from WCKD and is also looking for the Right Arm resistance, the two agree to take them to the Right Arm, abandoning their group of survivors . Moments later, WCKD, led by Janson, storms the place, only for the facility to be destroyed by Jorge's explosives . Thomas and Brenda are left behind, as the rest have escaped with Jorge . Thomas and Brenda manage to escape the Cranks, only for Brenda to get infected by a Crank in the process . Thomas experiences a flashback of when he and Teresa were formerly working for WCKD, in which Thomas tries to warn Teresa of WCKD's plans, only for the two to be separated by WCKD's troops . As Thomas and Brenda reunite with the rest of the group, Jorge interrogates Marcus, a survivor who secretly works for WCKD, into revealing the whereabouts of The Right Arm . </P> <P> The group eventually arrive at The Right Arm's outpost relief camps, where other innocent survivors are present, and are greeted by Vince, who leads the Right Arm and is in charge of deciding whether they can stay or not . As Brenda's infection gets worse, Vince threatens to shoot Brenda, only to be stopped by Mary Cooper, a former WCKD scientist who reveals that Thomas was their informant, which also helped the Right Arm in taking down WCKD's illegal major operations ever since . As Mary halts Brenda's infection using an enzyme cure, Mary explains that the enzyme can only be harvested from an Immune's body, not manufactured, and that arguments over the methods of manufacturing the cure with Ava led to Mary's departure from WCKD . That evening, Teresa tells WCKD of her location, believing that WCKD's motivations are good, leading to an ambush by WCKD . Ava and Janson arrive and confront the Right Arm before WCKD troops capture survivors for experimentation, including Minho, Sonya and Aris, while Janson shoots Mary dead . After Thomas and the Right Arm fend the WCKD troops off, Ava, Janson and Teresa retreat with their captured survivors . With only a fraction of survivors left at the site, Thomas plans an infiltration into WCKD and is determined to take them down to save his friends and save civilization, as his friends and the Right Arm agree to help and prepare to fight back . </P> <Ul> <Li> Dylan O'Brien as Thomas </Li> <Li> Kaya Scodelario as Teresa </Li> <Li> Thomas Brodie - Sangster as Newt </Li> <Li> Dexter Darden as Frypan </Li> <Li> Nathalie Emmanuel as Harriet </Li> <Li> Giancarlo Esposito as Jorge </Li> <Li> Alexander Flores as Winston </Li> <Li> Aidan Gillen as Janson </Li> <Li> Ki Hong Lee as Minho </Li> <Li> Jacob Lofland as Aris </Li> <Li> Barry Pepper as Vince </Li> <Li> Rosa Salazar as Brenda </Li> <Li> Lili Taylor as Mary Cooper </Li> <Li> Alan Tudyk as Marcus (credited as "Blondie") </Li> <Li> Patricia Clarkson as Ava Paige </Li> </Ul>

What happened to brenda in the scorch trials
find me the text answering this question