Baboons are found as far north as the semidesert of Saudi Arabia (Papio hamadryas) and as far south as Cape Town in South Africa (P. cynocephalus ursinus). The regional variants of the cynocephalus (dog-headed) baboon (chacma in the south, Guinea in the west, olive in the north east, and yellow baboon in the southeast) are considered to be the same species by most experts. The northeastern variant, the hamadryas, is generally considered to be a separate species but can interbreed with the olive baboon of Ethiopia.
Baboons and Their Environment
Baboons are very numerous in Africa, and are among the most adaptable of all mammals. This adaptability also allows baboons to survive in wet forest and the driest semidesert regions. They eat almost any plant material or small animal they encounter. Baboons often survive quite well in and around human settlements. They sometimes cause severe crop damage when they visit farmers' fields, since they are capable of eating even the toughest roots, such as cassava and sweet potato, but they also forage on farmers' bananas and maize. Baboons can survive on garbage at tourist lodges, or find food in near deserts in Namibia, Ethiopia, and Saudi Arabia. Baboons sleep in trees or caves and cliff ledges, for protection from nocturnal predators.
Thanks for description - Animal life club