The equation of a line in point-slope form is (y - y1) = m(x - x1) where m is the slope and a point on the line is (x1, y1)
In calculus, when we take the derivative at a point, the value is the slope of the tangent line at that point. So, if f '(8) = -1, then the slope of the tangent line at x = 8 is -1 (m = -1). Since f(8) = 4, a point on the line is (8, 4).
So, plugging those into the point-slope equation, we get (y - 4) = -1(x - 8). If you want to switch this around, you can multiply it out and combine like terms to get y = -x +12