Answer:
You use an a when the next word doesn't have a vowel at the beginning of a word.
You use an when the next word does have a vowel at the beginning of a word.
Step-by-step explanation:
It's all about grammar and how words go together or don't go together in different ways.