In a perfectly competitive market, each firm produces its last unit at: the same marginal cost. one of several marginal costs. a unique marginal cost. one of two marginal costs.