Question: how is whom used in a sentence?
Answer: Whom should be used to refer to the object of a verb or preposition. When in doubt, try this simple trick: If you can replace the word with “he”' or “'she,” use who. If you can replace it with “him” or “her,” use whom. Who should be used to refer to the subject of a sentence.