Look, I've gone and bought a ticket for Gerald, who/whom I find was planning on paying his own way.
Select one:
a. who
b. whom