Complex sentence: When time is up an expert judge comes to the kitchen to judge the food and the red team goes first and then the blue team goes last.
Split into simpler sentences: When time is up an expert judge comes to the kitchen to judge the food. The red team goes first and then the blue team goes last.