how do prices help determine for whom goods will be produced in a market economy