Phrase: I saw Jim yelling at some guy in a military uniform with a huge red beard. I don't know why he was, but he looked very unhappy.

Question: What does "he" in "why he was" refer to in the phrase?
Option A: Jim; Option B: the guy in uniform
Answer: a