Which form of the verb in the conditional mood correctly Completes the sentence

If I ____, I would have gone to the party.

Answer: had known