Given X and Y random variables with identical distribution.
$P(X=0)=P(Y=0)=\frac{1}{2}$
$P(X=1)=P(Y=1)=\frac{1}{4}$
$P(X=2)=P(Y=2)=\frac{1}{4}$
Let $A= X+Y=2$
and $B=X-Y=0$
$P\left(\frac{X+Y=2}{X-Y=0}\right)=\frac{P(A∩B)}{P(B)}$
Event $P(A∩B)$ happen when $X+Y=2$ and $X-Y=0$.
this is satisfied only when $X=1$ and $Y=1$
$P(A∩B)=\frac{1}{4} . \frac{1}{4} = \frac{1}{16}$
and $P(B)$ happen when $X-Y=0$. it occurs when $X=Y$
i.e. $X=0$ or $Y=0$
$X=1$ or $Y=1$
$X=2$ or $Y=2$
$P(B)=\frac{1}{2}. \frac{1}{2} + \frac{1}{4}. \frac{1}{4} + \frac{1}{4}. \frac{1}{4}$
$=\frac{6}{16}$
Now
$P\left(\frac{X+Y=2}{X-Y=0}\right)=\frac{P(A∩B)}{P(B)}=\frac{\frac{\frac{1}{16}}{6}}{16}$
=$\frac{1}{6}$