Answer:
Accusative or Dative
Explanation:
Whom do you see?
In this line the (interrogative) pronoun whom is accusative.
My friend to whom I borrowed my book.
In this line the (relative) pronoun whom, when it is used with the to- phrase, is dative.
Relative pronouns are often used in order to avoid repetition of a noun.