I would of course respect Mistress A, and never betray her confidence. If Mistress B wouldn't respect that, I would start looking for
Mistress C.
Actually, just the fact that Mistress B asked me to reveal the info would probably prompt my search for Mistress C.