let x be distance along 1st segment, and y be distance along 2nd segment. x and y are both random and independent, so we can treat them as a pair (x,y).
How do we work out the possible values of (x,y)? Draw a graph with x-axis and y axis, up to x=30 and y=30. All coordinates in this range correspond to possible (x,y) values.
Draw a straight line from (0,20) to (20,0). Everywhere along this line (eg. (20,0),(19,1) etc.) all have distance from each other equal to 20. Everywhere under this line is less than 20, and above greater than 20.
Area under this line = 20*20/2. Total area of possibility space = 30*30. Prob of distance less than 20 = 20*20/(2*30*30) = 2/9 = 0.222. This is consistent with engineers approximation so I think my method is right.
Thanks!