In a market economy resources tend to be allocated optimally. Discuss how the interaction of consumers and producers makes this happen