Step-by-step explanation:
we see 2 confirmed points with whole integers as coordinates.
(-2, -1) and (1, 2)
the general equation for a line is
y = ax + b
a is the slope expressed as y/x ratio indicating how many units y changes , when x changes for a certain amount of units when going from one point to another.
so, when going from (-2, -1) to (1, 2)
x changes by +3 units (from -2 to 1)
y changes by +3 units (from -1 to 2)
so, the slope (a) is 3/3 = 1
b is the y-intercept (the y value when x=0, so, the point where the line crosses the y-axis).
our equation looks now like this
y = x + b
to get b we use the coordinates of one of the points as x and y. e.g. (1, 2) :
2 = 1 + b
b = 1
the full equation is
y = x + 1