Show that the maximum profit occurs when the marginal revenue equals the marginal cost.

I'm pretty sure this is supposed to be some sort of proof, but I have no idea how to even start it...