The last games for Group G take place on Thursday at noon: The U.S. plays Germany in Recife, and Portugal plays Ghana in Brasilia. The top two teams from the group advance to the knockout round.

Here is how the possibilities break down for Team USA:

If the U.S. beats Germany:

The Americans qualify for the next stage as the top team from Group G and face the second-best team from Group H, which is likely to be Algeria.

If the U.S. and Germany tie:

The Americans qualify for the next stage as the second-best team from Group G and face the top team from Group H, which is likely to be Belgium.

If the U.S. loses and Portugal-Ghana ends in a tie:

The Americans qualify for the next stage as the second-best team from Group G.

If the U.S. loses and Ghana defeats Portugal:

The Americans fail to qualify if the combined margin of victory in the U.S. loss and Ghana’s victory is more than two.

If the margin of victory is exactly two, whichever team between the U.S. and Ghana has scored more goals advances. Currently, the U.S. has scored 4, Ghana 3.

If both teams have the same number of goals, the U.S. advances based on their head-to-head record.

If the U.S. loses and Portugal defeats Ghana:

The Americans qualify for the next stage as the second-best team from Group G as long as the combined margin of victory in the U.S. loss and Portugal’s victory is less than five.

If the margin of victory is exactly five, whichever team between the U.S. and Portugal has scored more goals advances. Currently, the U.S. has scored 4, Portugal 2.

If both teams have the same number of goals, a coin toss determines which team advances.

Follow us on twitter.com/foxnewslatino
Like us at facebook.com/foxnewslatino