Determination of quantity supplied by firm in perfectly competitive market