The distribution of carbon and M-type giants in the Magellanic Clouds.