A corporation manufactures candles at two locations. The cost of producing x1 units at location 1 is C1 = 0.02x1^2 + 4x1 + 580, and the cost of producing x2 units at location 2 is C2 = 0.05x2^2 + 4x2 + 275. The candles sell for $17 per unit. Find the quantity that should be produced at each location to maximize the profit, P = 17(x1 + x2) - C1 - C2.