The correct explanation for the existence of Mesosaurus fossils in both Africa and South America is:
The Earth’s continents were once joined together.
This aligns with the theory of continental drift, which suggests that these continents were once part of a single landmass, known as Pangaea, which later broke apart and drifted to their current positions.