So by distance formula we have,
Distance between two points = √(x2−x1)2+(y2−y1)2
Find the value of x such that AB=BC where the coordinates of A, B and C are (2,1), (x,0) and (−2,−1) respectively.