Africa’s two largest economies are making a comeback