We have two similar triangles in this figures.
We know similar figures have proportional sides.
Let's draw the two triangles separately along with the lengths of their sides.
From the figure, you can see the corresponding sides.
"x - 2 " corresponds with "2x - 2", and
"x + 1 " corresponds with "2x + 5"
Now, we can set up the ratio:
Now, we cross multiply, do a little algebra, and solve for "x". The process is shown below: