y = 3x + 8 is the equation of a line AB
Solution:
Given that,
A(5, 23)
B(-2, 2)
Find the slope of line

From given,

Substituting we get,

The equation of line in slope intercept form is:
y = mx + c ---------- eqn 1
Where,
m is the slope of line
c is the y intercept
Substitute m = 3 and (x, y) = (-2, 2) in eqn 1
2 = 3(-2) + c
2 = -6 + c
c = 8
Substitute c = 8 and m = 3 in eqn 1
y = 3x + 8
Thus the equation of line AB is found