This is incorrect for a few reasons... among them:
1) no reason x and y can only be integers... for example, (4,3.999999999999999) is perfectly fine point.
2) your logic on x being anything between 0 and 4 and y being anything between 0 and 5 is flawed. For example, the point (0,5) does not exist within the triangle... but you have counted it. What you have described is a rectangle.
The best approach is to consider the area of the two triangles described. See my description.
ramyaravindran wrote:x can be any of the values 0,1,2,3,4
y can be any of the values 0,1,2,3,4,5
So the possible combinations where x-y > 0 are (1,0), (2,0), (2,1),(3,0),(3,1),(3,2), (4,0),(4,1),(4,2),(4,3) ==> 10 possible combinations out of a total of 30 combinations. So the probability is 10/30 or 1/3.
Is the answer A?