Try to figure out which case goes in the blank, then choose the relative pronoun that would replace a noun of that case.