If I ________ money, I would have bought it yesterday.

(A) have
(B) had
(C) have had
(D) had had

The answer is: (D) had had