Drop the infinitive ending, add -л, agree with the speaker — plus was/were and had/hadn't.
Explore past-tense in Russian