They ended eight points ahead of Equatorial Guinea, who lost 3-0 to Togo at the same time but still qualify in second place.