How can the same fossil be found in different soil?

The fossils in south America & West Africa are the same during the perids in which they were one continent before sepatarion due to the opening of Atlantics ocean which resulted from plate tectonics.