1 tn The initial temporal clause is standard: It begins with the temporal indicator “and it was,” followed here by the Piel infinitive construct with the preposition and the subjective genitive suffix. “And it happened when he finished.”
2 tn The infinitive construct with the preposition lamed (ל) functions here as the direct object of the preceding infinitive. It tells what he finished.