Ms. Green has 18 pencils at her desk. Students borrow some of the pencils, and 6 pencils are left at the end of the school day. How many pencils were borrowed?