 If tied on aggregate, the away goals rule was used.If still tied, the penalty shoot-out was used to determine the winner (no extra time was played).The winners of each tie advanced to the second stage to join the 26 automatic qualifiers.