We need to find the x coordinate of A, thusly
20 = (-1/2)x^2 - x + 30
Subtract 20 from both sides and rearrange
(-1/2)x^2 - x + 10 = 0 multiply through by -2
x^2 + 2x - 20 = 0
Using the quadratic formula to find the solutions of this and taking the negative value, we have that
x = -1 - √21
So ( -1 - √21, 20) is one point on the line
And to find the y values associated with B we have
(-1/2)(5)^2 - 5 + 30 = -25/2 + 25 = 12.5
So the point (5, 12.5) is also on the graph
So the slope is [ 20 - 12.5 ] / [ -1 - √21 - 5 ] = [ -7.5] / [ 6 + √21 ]
So......the equation of the line is
y = ( [ -7.5] / [ 6 + √21 ] ) ( x - 5) + 12.5
