Mr. Chang buys supplies for the school store. He bought 300 pencils on sale for $10. During the first three months of school, he sold 200 pencils and made $50. The other pencils were thrown away because they were broken. How much profit did Mr. Chang make on the pencils?