Nitin P. answered • 8d

B.S. in Computer Science and Applied Mathematics from UC Berkeley

The slope of the line is:

m = (7 - 2)/(-5 - 5) = -1/2

The equation of a line passing through the point (a, b) with slope m is y = m(x - a) + b. Therefore, we can use the point (5,2) to get:

y = (5 - x)/2 + 2 = -x/2 + 9/2