Ответ:

Solution:

  1. If we had had (have) more time, we'd have visited Anne and Dave.
  2. If I knew (know) the answer, I would tell you.
  3. If you heat ice, it melts.
  4. If she had studied harder, she would have passed the exam.

Answer: had had; knew; melts; had studied.