How Does Price Mechanism Allocate Resources