The participants ---- working on the complex project for one hour when he suddenly --- the room.

Answer: 
had been/ entered
The participants ---- working on the complex project for one hour when he suddenly --- the room.