The correct option is A xy1−x−y+2xy
Let E1 be the event both A and B speak the truth and E2 be the event that both A and B will tell a lie.
Let E be the event that A and B agree i.e., both A,B speak the truth or both false.
P(E1)=x×y ,P(E2)=(1−x)(1−y)
Clearly, P(EE1)=1,P(EE2)=1
P(E1/E)=[P(E1).P(E/E1)P(E1).P(E/E1)+P(E2).P(E/E2)]=[xy×1xy×1+(1−x)(1−y)×1]=[xy1−x−y+2xy]