"a friend" because friend starts with a consonant sound, not a vowel sound. "a project" for the same reason.
HTH.