Sarah has 12 apples. She gives 3 apples to her friend John and then buys 5 more apples at the store. How many apples does Sarah have now?