2 to set up an Under-20 World Cup final against Brazil, which won 1-0 against Costa Rica in Tuesday's other semifinal. Tournament topscorer Dominic Adiyiah scored twice for Ghana's Black Satellites, while Alan Kardec's second-half goal breached Costa Rica's rigid defense in a scrappy match in which Brazil did not show its customary flair. Ghana will attempt to become the first African team to win the competition, while Brazil aims to win it for the fifth time on Friday in Cairo. Ghana lost its previous finals to Brazil in 1993 and to Argentina in 2001. “Zooming to the finals is a big thing and we've done that beautifully,” Ghana coach Sellas Tetteh said. “We are 90 minutes away from lifting a trophy.” Ghana's slick attack compensated for its shaky defense once more, with Adiyiah taking his tournament-leading tally to eight goals. Hungary rallied from 2-0 down and threatened in the second half but was badly missing its influential playmaker Vladimir Koman, who was suspended. Ghana captain Andre Ayew limped off in the second half and had an ice pack tied to his right ankle after the match. “We played well overall, even though the second half wasn't like the first. But if we win the final playing that then we'll be happy,” Ayew said. “We're not necessarily looking to play pretty football at this stage of the competition.” Costa Rica defended resolutely in the first half and almost scored on a rare attack only for Brazil goalkeeper Rafael to make a spectacular leaping save to keep out David Guzman's powerful shot. Brazil increased the pressure after the break, and Kardec punished some slack marking when he was left unmarked at the back post and thumped in a shot from a tight angle past goalkeeper Esteban Alvarado in the 67th minute. “More than anything else, I'm really happy to get to the final. I congratulate the team – it's not easy to play six games at this consistently high level,” Brazil coach Rogerio Lourenco said.