For both the monopolist and the perfectly competitive firm , profit maximizing output occurs at…