A firm isable to charge different prices in the Domestic and Foreign markets. The Domestic market demand curve is q = 24 - p, while the Foreign market demand curve is q = 18-p. Suppose the firm has a cost curve for total output given by c(q) = q^2. What are the optimal quantities and prices for the two markets?