I'm struggling with the following. I have a question such as:

Find an equation for the line tangent to at (5,-122)

I know how to calculate the slope which is:

And the above in slope intercept form is:

How was the slope intercept form calculated? I can't seem to figure this out.