Sarah has a bag of cherries. She ate 5, then gave half of what she had to Liam. Lam ate 5, then gave half of what he had to Amy. Amy got 2 cherries. How many cherries did Sarah have in the start?