Choose the sentence with correct use of the conditional perfect tense:
A. If I would have known, I would have helped.
B. If I knew, I would help.
C. If I know, I would help.
D. If I had known, I would have helped.
The correct form is "If I had known, I would have helped," using the conditional perfect tense for a unrealized condition in the past.