contestada

Is it "Last night he was entering the room while she was talking"?
"Last night he entered the room while she talking"?
Or "Last night he had entered the room while she was talking"?​