Mrs. Herring began the year with 200 pencils for her class. She gave each of her 22 students a pencil. Then she loaned 50 pencils to the teacher next door. Next, one of her students brought her 18 new pencils. How many pencils did Mrs. Herring have then?