If a representative firm with long-run total cost given by TC = 50+2q+2q^2 operates in a competitive industry where the short-run market demand and supply curves are given by Qd = 1,410 - 40P and Qs = -390 +20P, its long-run profit maximizing level of output is.