Which equation would you use to solve the following situation?
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?
x - 6 = 18
18 - x = 6
18 + 6 = x
x - 18 = 6