The correct answer to complete the sentence at blank number 20 is:
B. had been
So the complete sentence would read: "They had been away so long and were so much changed in appearance that none of their relations and old friends knew them when they arrived in Venice."