When you register, you can specify that you want to participate in the team competition. You can either specify the name of your team, or you indicate that you have no preference for a team. In that case, the organization will assign you to a team.
Please note that all members of a team must fall into the same class. So either all small or all medium, but not mixed!