At the output level defining allocative efficiency:

the maximum willingness to pay for the last unit of output equals the minimum acceptable price of that unit of output.