Sentence A correctly uses the possessive form.<em>
I was anxious to visit Nicole and Sofia's house because I rarely saw my cousins.
</em>
The Chicago Manual of Style says that “when two nouns “possess” the same entity, only the second takes an apostrophe (‘)” which is exactly the case in sentence A.
Both Nicole and Sofia own the same house.
Irony: "I've got more faith in Hitler than in anyone else. ... Elie means that Hitler has kept his promise of killing off all the Jews, while God has not kept any of his to help.