Sabrina's gym puzzle is different for each game. If you struggle, try making a map of where each portal takes you. That's what I did as a child, and it worked out perfectly.