the two important conditions are: allocative efficiency and productive efficiency.
Allocative efficiency refers to a condition when the amount of production is awlays match the appropriate marginal benefit that the consumers get.
Meanwhile, the productive efficiency refers to a condition when the market could no longer produce additional goods without sacrificing another good