Barbara has 9 candies. She buys 18 more. How many candies does Barbara have in all?