 In the first stage, each group played on a home-and-away round-robin basis.The winners of each group and the best 15 runners-up qualified for the second stage.The teams were ranked according to points (3 points for a win, 1 point for a draw, and 0 points for a loss).