问题

-Why didn’t Tom give you one of his paintings?-I didn’t want one,but he would have given me one if I______.

A:did
B:would
C:will
D:had
正确答案是: