Comparison of the price and output decisions of a perfectly competitive firm with those of…