Languages typically provide more than one grammatical construction to express certain types of messages. Your task is to generate a senetence with the same meaning as given sentence, but with different grammatical construction.

Linda wrote a man who was wearing a hat a check
Linda wrote a check to a man who was wearing a hat

Mary raised the woman who was from work the problem
Mary raised the problem to the woman who was from work

John barked the man from work some directions

John barked some directions to the man from work