1) Put had already left when we got home.
2) Helen had been painting her bedroom all day yesterday.
3) We had finished our homework by the time mum came home.
4) I had been reading for a while when my attention had been attracted by a loud at the front door.
5) Her eyes were red because she had been crying.