THE TEACHER ASKED TOM WHAT HE WAS DOING.

2. The teacher asked Tom what he was doing.