The continents that have coastlines and mountain ranges that match up are:
Africa and South America
This is primarily due to the fitting together of continental margins, particularly the coastlines along the Atlantic Ocean, which supports the idea of continental drift and plate tectonics.