Boolean Algebra & Logic Gates

Answer & solution
Official answer: B, D
Approach: Use two basic majority rules: X(u,u,v)=u, and X(0,1,v)=v. Prove claimed identities by cases and reject others with one counterexample.
For B, if a=b then both sides equal a. If a≠b, the outer X(a,b,z) returns z, so the left side becomes X(a,b,c), exactly the right side. Thus B holds.
For D, X(a,c,c)=c. If a=c, both the left side and X(a,X(a,b,c),c) equal a. If a≠c, X(a,b,c)=b, and the right side becomes X(a,b,c)=b. Thus D also holds.
A is not an associative law: choose (a,b,c,d,e)=(0,0,0,1,1). The left side is X(0,0,1)=0, whereas the right side is X(0,1,1)=1.
C fails for (a,b,c,d)=(0,1,1,1). Its left side is X(0,1,1)=1; its right side is X(0,1,0) AND X(1,1,1)=0 AND 1=0.
Therefore select B,D. Equality on a few examples cannot establish an identity, which is why the true cases require a complete case argument.