Resources are allocated through the price mechanism in a free market economy, the economic problem is solved through this mechanism. The price moves resources to where they are demanded or where there is a shortage, and removes resources from where there is a surplus.