The hippo ate the food the trainer brought when he put it in the trough.

Who is he referring to in this sentence?
Choices:
A). The hippo.
B). the trainer.
B).