contestada

in which sentence is whom used correctly? I want to know whom wrote the essay. Whom has the skills to write the essay? He is whom you want to speak to. I think he is whom is speaking.