for/during the second...
past perfect nie, bo zdanie opisuje wydarzenie pozniejsze niz zdanie poprzednie.
np. he took out a piece of paper and started to write. When he finished, he went out - tu wazne jest to, ze wydarzenia w drugim zdaniu sa pozniejsze niz w pierwszym, nie patrzymy na to ze finished jest wczesniejsze niz went