South Africa is one of three African countries that feature in the world's top 30 economies, coming in at number 27.