Figure gives a system of logic gates. From the study of truth table it can be found that to produce a high output (1) at R, we must have
X=0, Y=1
X=1, Y=1
X=1, Y=0
X=0, Y=0
The truth table can written as
hence X=1, Y = 0 gives output R =1