As is known, firms move for maximum profit with minimum cost. Therefore, one of the two factors that need to…