An industry operating in a perfect competitive market situation will maximum profit when