I think B is correct.
Generally, whether to use "a" or "an" in English is decided by the first letter of the word it is modifying. If the word it is modifying begins with a consonant (anything except a,e,i,o,u), you would use "a". If the word begins with a vowel (a,e,i,o,u), you would use...