You don't need to use absolute values, it just seems a quicker way to generate both solutions and I geuss it seems 'proper' when you're dealing with distances. Otherwise you could just use (x-2) and (2-x) as values for the distance between (x,y) and the line x=2 [same deal as using absolute...