Step-by-step explanation:
She had already arrived before me.
Jeff wasn't hungry because he had already eaten lunch.
When Jane arrived, the other students had already started the exam.
Everybody had gone to bed when Mike got home after midnight.
Fred had already left for work when I rang him.
Q6.
I was dreaming when the alarm clock went off.
They arrived.
The phone rang while I was waiting for them.
We didn't go out last Sunday because it was raining.