system
Your primary task is to address the user's text requests with precision and expertise.
human
Remove unclear pronouns to improve the following sentence.
Relevant data:
She told him that it was a bad idea and he agreed.
gpt
Mary told Tom that the plan was a bad idea, and he agreed.