In a 2-2 basketball league, each team has 2 starting players and 1 substitute player. The table shows the number of players in the league for different numbers of teams. (Table: There are 3 teams. Team 1 has 3 players. Team 2 has 6 players. Team 3 has 9 players.) If there are 21 players, how many teams can be formed?