From figure, D and E are the points on the sides AB and AC respectively and DE || BC
then AD/DB = AE/EC
AD = x cm, DB = (x – 2) cm, AE = (x + 2) cm and EC = (x – 1) cm.
x/(x-2) = (x+2)/(x-1)
x(x-1) = (x+2)(x-2)
Solving above equation, we get
x = 4 cm