So "the line tangent to the graph of function f" means the derivative. "At the point (1,7) and passes through the point (-2,-2)" means the derivative passes through these two points.
Therefore, to find the derivative or the slope, you use the equation y-y1 = m(x-x1).
The reason why we know...