In the given figure, AD is perpendicular to BC.
Slope of a line passing through (a, b) and (c, d) =d−bc−a
Slope of BC =−3−(−2)−5−4=19
Product of slopes of perpendicular lines is -1.
Let the slope of AD be m.
AD ⊥ BC
So, m9=−1→m=−9
Equation of a line passing through (a, b) and slope 'm' = y−bx−a=m
Equation of AD =y−8x−(−1)=9→y−8=9x+9→y=9x+17
Comparing y=9x+17 with y=ax+b, we get a=9 and b=17a+b=9+17=26