Answer:
x = 5
Explanation:
The corresponding segments are proportional, so you can write any of several equations relating the different segment lengths. Here's one way:
top segment/bottom segment = x/(x+5) = (x-2)/(x+1)
Multiply by the product of denominators:
(x +1)x = (x +5)(x -2)
x² +x = x² +3x -10 . . . . . eliminate parentheses
10 = 2x . . . . . . . . . . . . . . add 10 -x -x² to both sides of the equation
5 = x . . . . . divide by 2