Input (grade 5): They were split into two groups of 4: Group A and Group B. Each team in a group played each other once, with the top two teams in each group progressing to the semi-finals.
Output (grade 5): They were split into two groups of 4: Group A and Group B. Each team in a group played each other once, with the top two teams in each group moving into the semi-finals.