If a slope of the line is 4, then the equation of the line is
y=4x+b.
This line passes through the point (8,-4), this means that coordinates of this point satisfy the equation:
-4=4·8+b,
b=-4-32,
b=-36.
Thus, the equation of the line is y=4x-36.
Now, substitute the coordinates of the point (10,n) into the equation:
n=4·10-36,
n=40-36,
n=4.
Answer: n=4.