ABx2−6x2−5x−6(x−6)(x+1)====BC5x00
x−6x==06 x+1x==0−1
If x=6 then AB=x2−6=62−6=36−6=30.
If x=−1 then AB=(−1)2−6=1−6=−5.
We reject the answer x=−1 and AB=−5 because the length of a line segment is always positive. Therefore x=6 and AB=30.
Check:

Answer: AB=30.