You bring a team of 6 to the battle. At team preview, you get to see your opponent’s team (only Pokemon, not items or moves), and your opponent sees yours. You choose which Pokemon to lead, and two more to have for switching in, for a total of 3. The other 3 sit on the bench for that game.