Its one home leg and one away leg. So each of the teams play once at home and their opponents home and the team with highest goals after 2 legs go through.
In the event of a tie the team with highest away goals go through(i.e the goals u scored in ur opponents home). If a tie still it will go to extra time and penalties.