a + book, a university
an + apple, an hour
A and an mean "one", but not a particular one. They go before one thing you can count: a book, an apple. They never go before a plural (books) or before words you can't count, like water or music.
Use an before a vowel sound and a before a consonant sound. Most of the time this follows the first letter: a cat, an egg. But the sound is what counts, not the letter.
When there's an adjective, the adjective's first sound decides.
Say what someone's job is with a or an.
Use a when you mention something for the first time. When you talk about it again, the listener knows which one, so use the.