(1) y - x = 9This tells us that we have a range of 9, it could be 1,2...,10 or 11,12..., 20. Lets take one example : 1,2,3..10
Now Bob can select any number from 1 to 10, and we need to see the cases where Ann's number will be greater than Bob's:
If Bob picks 1, Ann can pick any from 2,3..10 > 9 numbers
If Bob picks 2, Ann can pick any from 3,4..10 > 8 numbers
If Bob picks 3, Ann can pick any from 4,5..10 > 7 numbers
...
If Bob picks 9, Ann can pick only 10 > 1 number. If Bob picks 10, any number Ann picks will be smaller or equal to 10, so we don't count that case.
From here, we can get the sum of all cases and divide the total by 100 to get the probability.So knowing the range is enough. As long as the range is same, the sum of all cases will remain the same as well.
Statement 1 is sufficient
(2) y = -20 Here we do not know what x is. As seen from previous statement, we must know the range between y and x to find all the cases where Ann can select a greater number than Bob.
Here x could be -50 or -100, and the probability could vary on x's value.
So Statement 2 is not sufficient