the graph below shows a triangle with the coordinates (0,1) (2,0)

then it ask what is the Probably P(1<= X <= 2)

iv tired doing the Pythagorean therm but guess that doesn't work, then i tried something with finding the whole triangles area but then i was stuck after that and thought that was incorrect to then i sat there and was trying to find another way but i don't know any other way.