The AND and XOR Gates

The AND gate is defined as

\( x_1 \) \( x_2 \) \( y \)
0 0 0
0 1 0
1 0 0
1 1 1

And finally we have the XOR gate

\( x_1 \) \( x_2 \) \( y \)
0 0 0
0 1 1
1 0 1
1 1 0