Complex sentence: In Ski, both team members had to go through a slalom skiing course, passing through all the flags, in order to receive their next clue.
Split into simpler sentences: In Ski, both team members had to go through a slalom skiing course. They have to pass through all the flags to receive their next clue.