The correct option is D (x+5)
Given: x2−2x−35(x−7) ...(i)
Comparing x2−2x−35 with the identity x2+(a+b)x+ab
We note that, (a+b)=−2 and ab=−35
So, (−7)+5=−2 and (−7)(5)=−35
Hence,
x2−2x−35
=x2−7x+5x−35
=x(x−7)+5(x−7)
=(x+5)(x−7)
From (i), we get
x2−2x−35(x−7)=(x+5)(x−7)(x−7)=(x+5)