How can there be swampland right next to a desert in Sudan?

The question refers to a misunderstanding. Sudan does have desert areas, but there are no swamps next to them.
Copyright Wanderlust World © https://www.ynyoo.com