Please help design a badminton competition system.

There are 24 people taking part in the competition. Because of the team competition, you can combine or draw lots freely in groups of three. 24 people can be organized into 8 groups. The team used the method of 3 games and 2 games.

In terms of competition system, eight teams are divided into two groups, with four teams in each group, each adopting a single round robin competition system. Then according to the first two points, the cross rematch will be held. Until the champion is born.