In coordinate-plane,the area below line y=x means y<x.
you can see that the line y=x splits the triangle OAB into two small triangles, and the probability asked is the ratio of the area of the triangle below line y=x to the area of triangle OAB.
the line which goes through (5,0),(0,2) is Y=-2/5 X+2, and it intersects line y=x at (10/7,10/7),then you can work the ratio out.