This is how it works—
At first, 3 teams were tied, so this was the standings comparing head to head:
T-P-GF-GA-AwayGoals-GD
Yusuf FC-6-6-4-3-(+2)
Alpasian SK-6-4-4-4-(0)
You-6-4-6-2-(-2)
Yusuf FC qualifies thus, leaving you two tied:
Alpasian SK-3-3-1-3(+2)
You-3-1-3-3-(-2)
Alphasian SK also qualifies. Thus you're out.
You should've qualified, since you won the first two (the chronology is left-to-right, top-to-bottom or the opposite?)
You don't need to do the highlighted bit, unless they were tied on points and GD in the first 'mini-league'. He was eliminated in that stage, not because of his head-to-head with the one in second place.