Use formal wording. Select the standard sentence in which the relative pronoun is the object of invited.
The speaker who we invited him came.
The speaker whom we invited arrived early.✓Richtige Antwort
The speaker whom we invited him arrived early.
The speaker that we invited him arrived early.
Erklärung
Whom is the single object of invited in the specified formal wording, so him is unnecessary. The whom we invited him version is the closest distractor because it fills the same object role twice.