first let us count the total no of cases...
when x is 1 y can have 99 values...
when x is 2 y can have 98 values...
therefore total no of cases is :
\sum_{n=1}^{99}{n} = 99 x 50....
case 1:x and y are both even...
for x=2 y can have 49 values
for x=4 y can have 48 values and so on....
therefore favourable cases is \sum_{n=1}^{49}{n}=49 x 25
case 2:x is of the form 4n+1 and y of 4n+3(den de expression will result in 0)
for x=1 y can have 33 values....
for x=5 y can have 32 values and so on...
favourable cases is \sum_{n=1}^{33}{n} = 33 x 17
total favourable cases is 33 x 17 + 49 x 25 = 1786
total cases = 4950
therefore probability = 17864950