How did the geographic features and resources of the Northern and Southern states contribute to their economic differences and similarities?