I didn't know that you were at home. I didn't visit you.
A. If I knew that you had been at home, I would have visited you.
B. If I had known that you were at home, I would have visited you.
C.If I would know that you were at home, I visited you.
D.If I knew that you were at home, I would visit you.