======================================================
Explanation:
We will use the slope formula
m = (y2-y1)/(x2-x1)
Plugging in the given items leads to
-5 = (g-8)/(6-4)
Now solve for g
-5 = (g-8)/(6-4)
-5 = (g-8)/2
-5*2 = g-8
-10 = g-8
-10+8 = g
-2 = g
g = -2
We have (6,g) turn into (6,-2)
The two points (4,8) and (6,-2) are on a line of slope -5.
-------------------
As a way to check, we'll find the slope of the line through (4,8) and (6,-2)
m = (y2-y1)/(x2-x1)
m = (-2-8)/(6-4)
m = -10/2
m = -5
The answer is confirmed.