Find the slope of the line passing throught the points (2, 2) and (4, 3).
The formula of a slope:

Substitute:

If the point (x, -1) lie on the same line, then the slope of line passing through the points (2, 2) and (x, -1) the same:
Substitute:

We have the equation:
cross multiply

add 2 to both sides

Answer: x = -4.