1 Rafael had lit the candles when she arrived.
2 Rafael had lit candles when she arrived.
3 When she arrived at the theater he had bought the tickets.
4 When she arrived at the theater he had bought the tickets.
5 When he came home, they had had dinner together.
6 When he came home, she had already had dinner.