Problem: James asked Robert for a favor but *he* was refused.

Are "he" and "James" the same?
Answer: yes

Problem: Emma's mother had died long ago, and *her* place had been taken by an excellent woman as governess.

Are "her" and "Emma" the same?
Answer: no

Problem: Sam took French classes from Adam , because *he* was eager to speak it fluently.

Are "he" and "Sam" the same?
Answer: yes

Problem: Jim yelled at Kevin because *he* was so upset.

Are "he" and "Kevin" the same?
Answer:
no