Complex sentence: The students rush to the exam room, where they make it just on time, but as teams are required for the exam, they are all forced to be on a team together.
Split into simpler sentences: The students rush to the exam room where they make it just on time. But as teams are required for the exam, they are all forced to be on a team together.