Here x1 and x2 are lying in two different quadrants and y-coordinate are equal
Distance AB=|x2 - x1|=|- - |=|-|