In west Africa and west central Africa two other countries have almost the same name they were named after a river that runs through both nations what are the countries and river?

please write the answer btc