Sure, here are two sentences using "whom" and "affect" in different contexts:
1. "To whom did you give the gift?" (using "whom" as the object of the verb)
2. "The news of the promotion greatly affected her mood." (using "affect" as a verb meaning to influence or impact)