Answer:
“She said ‘Pete, don’t talk back to me!’”
“The teacher said ‘Pete, don’t talk back to me!’”
Step-by-step explanation:
So think of reported speech as someone telling gossip almost, the tense may change sometimes, but you’re talking as if you’re reporting back to someone. Some other examples of this would be
Direct Speech: I was walking along the street.
Reported Speech: She said (that) she had been walking along the street.