As a price taker, the profit-maximizing quantity is where MC = P*, where MC is the Marginal Cost and P* is your competitor’s price for the same product you are making.