Team first. That's right. There are six people in each of the five groups. Then there is the project you want to participate in. For example, ordinary team events include men's singles, women's singles, men's doubles, women's doubles and mixed doubles. I guess all six of you can't attend, and you have too much physical strength. So you can use men's singles, women's singles and mixed doubles according to the situation (to test your grouping, both men and women should have it). If there are not enough women's singles, there will be only men's singles and mixed doubles, and if possible, one more men's doubles.
Then the top three individuals, that is, singles (men's singles and women's singles), are limited to two people in each group (if men's singles are reported in both places, women's singles cannot be reported), and then the team leader is responsible for signing up. If they are all registered men's singles, then draw lots, play against each other, and win and enter the next round. If there is an odd array, the winner will enter the next round through bye. Finally 1 and 2 came out, and the third place had to play one more game.
If someone signs up for the women's singles, it will be a bit troublesome. I suggest you increase the women's singles 1, 2, 3 as appropriate. It's also a knockout.