Alice has a certain number of apples. She gives 8 apples to her friend Bob and then has 12 apples left. How many apples did Alice have initially?