what are the roles of consumers and producers in allocating resources