English Translation
Tom told Mary that he could do whatever she liked.
It would need to be “Tom told Mary that he could do whatever “HE” liked”
Tom told Mary that he could do whatever she liked.
It would need to be “Tom told Mary that he could do whatever “HE” liked”