Auto-translated
If you want to team up with a player against the AI, set it to 2 human players and AI opponents, and the rest as AI players. Then, have one team with a human player and AI, and the rest as only AI.
If you want to play a team-vs-team match, you won't be able to choose who plays with whom.