Math problem (eliminate 27 football teams? )

trial match

The 27 teams were divided into 9 groups, with 3 teams in each group playing round robin, and the points were calculated by the method of "winning 3 draws 1 minus 0", with the first team in the small group advancing and the other two eliminated. (Assuming no group tied for the first place, * * * needs to play 9*3=27 games);

Participate in the quarterfinals.

The nine teams that advanced were divided into three groups, with three teams in each group. They won the top three with the same integral method and elimination system, and the remaining six teams were eliminated. (Assuming that the first place in the small group is not tied, * * * needs to play 3*3=9 games);

final

The three teams that won the rematch played round robin, and were also ranked as 1, 2, 3. (Assuming that the first place in the small group is not tied, * * * needs to play 3 games).

To sum up, you need to play at least 27+9+3=39 innings.