These are the qualification rules:
If two or more teams finish equal on points after all the group matches have been played, the following criteria shall be applied to determine the ranking:
1. Number of points obtained in the matches between the teams in question;
2. Goal difference resulting from the matches between the teams in question;
3. Number of goals scored in the matches between the teams in question (if more than two teams finish equal on points);
4. Goal difference in all the group matches
5. Number of goals scored in all the group matches;
6. Coefficient of points from the last two qualifying competitions for the final rounds of the 2000/02 FIFA World Cup and 2002/04 UEFA European Football Championship (points gained divided by the number of matches played);
7. Fair Play conduct of the teams (in the final tournament);
8. A drawing of lots.
Additionally, if two teams meeting in one of the last round of group matches have the same number of points, the same goal difference and the same number of goals, and if this match stands at a draw at the end of normal time, the ranking of these two teams will be determined by kicks from the penalty mark, rather than the criteria outlined above.