Maximizing Revenue and Profit