A company manufactures and sells lamps. The cost function was determined to be
C(x)=30x+400,
where x is the number of lamps produced. Each lamp is sold for $50. How many lamps are sold if the revenue is $1,200? Do not include units in your answer.