(CNN) -- Carlos Tevez scored twice as Argentina beat Mexico 3-1 in Johannesburg, South Africa, to set up a meeting with Germany in the quarterfinals of the World Cup. The Manchester City striker opened the scoring after 25 minutes in controversial fashion when television replays, which were relayed on the giant screens in the stadium, showed he was offside when he received the ball from Lionel Messi and headed into the net. Despite protests from the Mexican players, the goal was allowed to stand. Argentina doubled its lead when Gonzalo Higuain rounded goalkeeper Oscar Perez to score his fourth goal of the tournament.
@highlight
Argentina beats Mexico 3-1 in Johannesburg to reach World Cup quarterfinals
@highlight
Carlos Tevez scores twice for Argentina and Gonzalo Higuain gets one
@highlight
Javier Hernandez nets a consolation goal for the Mexicans
@highlight
Argentina will play Germany in the semifinal in Cape Town on Saturday, July 3
Javier Hernandez pulled a goal back for Mexico with a powerful left-footed drive after 70 minutes, but it proved to be little more than a consolation for the Mexicans as @placeholder easily claimed the victory.