Solution :
(x1 - x2)2 is same as (x2 - x1)2 and (y1 - y2)2 is same as (y2 - y1)2
i.e. =√( (x2 - x1)2 + (y2 - y1)2)
= √( (x1 - x2)2 + (y1 - y2)2)