Open the brackets:
Tom (to look) ............................. at the window
When the teacher ( to ask) ........................ him a quesion suddenly
We ( to work) ........................... in the garden when the rain ( to begin) ...................... to fall.