So to find x we need to add both HI and IJ - which we know equals 7:

Then we need to combine like terms:

And then set equal to 0:

Then we can factor:

So then when we set each term equal to 0 individually and solve for x we get: x = -5 and x = -2.
So we have these two values - we need to test which one is correct. So if we go back to the HI segment, let's try plugging in x = -5:

This gives us a negative number, which we know that length cannot be negative. Let's try x = -2:

This gives us a positive length and therefore we can keep this value.
So the answer is: x = -2.