Determining the Optimal Price and Quantity Sold