QUES:
Who is him in the following sentence?

The Secretary and the President met about him being elected.

ANS:
the President

QUES:
Who is they in the following sentence?

Sega lost to Nintendo because they were superior.

ANS:
Nintendo

QUES:
Who is he in the following sentence?

The farmer proudly revealed his favorite chicken, because he laid a golden egg.

ANS:
his favorite chicken