Basically, the race is a relay-style race. Team riders of the first lap (who start the race for their teams) can after 1 lap hand over to the next team member or keep riding – that's up to the teams to decide. As soon as you ride 1 lap per solo rider, respectively per team, your time counts and is valid in the final results.
Mixed male/female teams: each team needs to record at least one female AND one male lap to be in the results.
The rider in the solo categories / the team with most laps (and shortest time thereafter) wins. If there are riders/teams in a category with the same number of laps, the fastest total lap time determines the ranking.