Ответ:The visits happened before the past moment expressed by “knew”, so the past perfect is used.Answer: had been