The profit is the revenue minus the cost: 65n−(20,000+10n)= 55n−20,000.