I believe the answer is: What goods and services are produced?
Before we can determine how we should produce goods or service, we first need to determine the type of goods and services that are needed by the market. After knowing this, then we can see the resources availability in near us to determine the most efficient method to do the production.