Answer:
x = 4
Explanation:
From the picture attached,
By using mean ratio theorem in the given triangle,

AC × CD = (BC)²
(x + 5)x = (x + 2)² [Since, AC = AD + CD]
x² + 5x = x² + 4x + 4
5x = 4x + 4
5x - 4x = 4
x = 4
Therefore, x = 4 will be the answer.