Given from question:
(x₁,y₁) = (-4,1)
(x₂,y₂) = (-2,2)
Determine the slope with slope formula
m = (y₂ - y₁)/(x₂ - x₁)
m = (2 - 1)/(-2 + 4)
m = 1/2
Make an equation with this formula
y - y₁ = m(x - x₁)
y - 1 = 1/2(x - (-4))
y - 1 = 1/2 (x + 4)
y - 1 = (1/2)x + 2
y = (1/2)x + 2 + 1
y = (1/2)x + 3
This is the equation