Mary: "He is telling a lie" She said that he was telling a lie
Present continuous → Past continuous
Mary: "He has told a lie She said that he had told a lie
Present perfect → Past perfect
Mary: "He told a lie" She said that he had told a lie
Past simple → Past perfect
Mary: "He was telling a lie" She said that he had been telling a lie
Past continuous → Past perfect continuous
Mary: "He had told a lie" She said that he had told a lie
Past perfect → Past perfect