For 1 team there are 3 possibilities.
When there are 2 teams for each of the 3 possibilities for the first team there are the 3 possibilities of the next team. Draw it as a tree maybe.
It's 3 * 3 at that point.
Each time the number of possibilities triples. So in general it's 3 to the power of the number of teams.