Profit maximization, MR equals MC

A firm makes the most profit at the output where marginal revenue equals marginal cost, because any unit with MR above MC adds to profit and any unit with MC above MR takes from it.

From AP Microeconomics.