<P> When Sharpay discovers that Ryan and the Wildcats are putting together their own performance in the show, she orders Mr. Fulton to ban all junior staff members from performing . Gabriella angrily confronts Sharpay about her interference and quits her job at Lava Springs . Troy overhears the exchange and tries to persuade Gabriella to change her mind . Gabriella expresses her loss of trust with Troy ("Gotta Go My Own Way") and leaves Lava Springs, and gives him the necklace back . It also seems that they broke up . </P> <P> Troy returns to work the next day to find that his friends refuse to talk to him . Kelsi silently shows Troy the notice from Mr. Fulton, causing Troy to question his own motivations ("Bet On It"). He begins to reconcile with Chad and his other friends . Then Troy confronts Sharpay, informing her that he will not sing with her . The Wildcats and Chad forgive Troy for his absence and convince him to sing in the talent show, which he does only under the condition that they are all allowed to perform as well . </P> <P> At Sharpay's supposed instruction, Ryan gives Troy a new song to learn moments before the show . As Troy goes onstage, he asks Sharpay why she switched the song, and Sharpay is shocked to find that her brother tricked her . Troy sings the song ("Everyday") alone until Gabriella surprisingly joins him onstage . In the end, Sharpay proudly presents her brother, Ryan, with the award for the talent show . After the talent show, all the Wildcats go to the golf course to enjoy the fireworks . </P> <P> Everyone celebrates the end of the summer with a pool party ("All for One") which features a cameo appearance by Miley Cyrus . </P>

When did they film high school musical 2