Change the narration: The teacher said, "Two and two is four".
Change the narration: The teacher said, "Two and two is four".
Explanation
The teacher said that two and two is four.
Universal truths or facts remain unchanged in indirect speech.
Since "Two and two is four" is a mathematical fact, the verb "is" stays the same.