The equation of the line passing through point $ \left(8,~-2\right) $, and point $ \left(4,~-2\right) $ is:
$$ y+2=0 $$In this example we have:
$$ \begin{aligned} & \left(8,~-2\right) \implies x_A = 8 ~~\text{and}~~ \color{blue}{y_A = -2 } \\[1 em] & \left(4,~-2\right) \implies x_B = 4 ~~\text{and}~~ \color{blue}{y_B = -2 } \end{aligned} $$Since, $ y_A = y_B $ the equation of the line is:
$$ y = y_A $$In this example this is:
$$ y = -2 $$