X = 1 if (A = 1 OR B = 1) OR (A = 0 AND B = 1
Y = 1 if (A = 0 AND B = 0) AND (B = 0 OR C
Please help I will mark brain list
