LAGOS, Nigeria (AP) — German Chancellor Angela Merkel on Friday wrapped up a three-day Africa visit in Nigeria with a meeting between the leaders of Europe's and Africa's largest economies focusing on migration.

Merkel traveled with nearly a dozen German CEOs in Senegal and Ghana, two of Africa's fastest-growing economies. The tour aimed to boost investment in a region that is a major source of migrants heading toward Europe, even as migrant arrivals across the Mediterranean are at their lowest level in five years.

Some in Europe hope that investing in West Africa will keep people in a region plagued with unemployment, rising extremism and the effects of climate change from leaving. The challenge only grows as sub-Saharan Africa's population is expected to double by 2050.

"This administration is very clear: We do not support illegal migration," Nigerian President Muhammadu Buhari told a joint press conference. "But we will also do everything to help bring all stranded Nigerians back home."

Nigeria is among several West African nations that in recent months have brought home thousands of citizens stranded in squalid camps in Libya on their way toward Europe. After reports of abuses, Buhari late last year called it appalling that some Nigerians "were being sold like goats for few dollars" in the North African nation.

Finding opportunity at home, however, has been a challenge. Some Nigerians were alarmed by recent reports based on data by the World Poverty Clock, funded by Germany's ministry for economic cooperation and development, saying their country had surpassed India with the largest number of people living in extreme poverty.

Also faced with widespread corruption, more than one-third of Nigerians say they have considered moving abroad, according to a 2017 Afrobarometer survey last year.

"Youth are demanding and want a future in their own country," Merkel said at the end of her Africa visit.

Her Nigeria stop came two days after that of British Prime Minister Theresa May, who announced a project with France to help Nigeria, the region's powerhouse, and neighboring Niger improve border cooperation along a key migration route.

___

Follow Africa news at https://twitter.com/AP_Africa