The top two teams with the most points go through. Goal differential, used as a tie-breaker when teams are even with points, accounts for the number of goals a team has scored minus the ones it has allowed.

Here are the way the scenarios play out in the remaining two groups:

Group G:

All four teams are alive in this group. Any two can clinch a spot to the next round.

Germany (4 points, goal differential +4) -- Advances and wins group with either a victory or draw against the United States.

United States (4 points, goal differential +1) -- Advances and wins the group with a victory against Germany. A draw also qualifies them.

Ghana (1 point, goal differential -1) -- Advances with a win against Portugal and a United States or Germany loss while overcoming goal differential.

Portugal (1 point, goal differential -4) -- Advances with a win and a United States or Germany loss while overcoming goal differential.

Group H:

Belgium is through to the next round, while Algeria, Russia and South Korea all have a chance to also advance.

Belgium (6 points, goal differential +2) -- Already through to the next round. Wins group with a win or draw versus South Korea.

Russia (1 point, goal differential -1) -- Advances with a win against Algeria and either a Belgium victory versus South Korea or a South Korea win that does not overcome its goal differential.

South Korea (1 point, goal differential -2) -- Advances with a victory against Belgium coupled with a Russia win against Algeria or Russia draw versus Algeria while overcoming its goal differential.

Get real-time World Cup results and news about all the matches you care about delivered right to your phone every day. To start, just "star" this story in ABC News' phone app. More of a casual fan? Sign up for occasional dispatches from Brazil -- including the best photos and limited highlights -- by "starring" this story. Download ABC News for iPhone here or ABC News for Android here.