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.

Juan taught the woman who was wearing the hat the lines
Juan taught the lines to the woman who was wearing the hat

Linda contributed the woman some paintings
Linda contributed some paintings to the woman

Maria credited a man wearing a hat the refund

Maria credited the refund to a man wearing a hat