y = 1 (x) 
 find perpendicular line 
 y = -x 
 that passes through the point (5,7) 
 y = -x + 12 
 Intersection point is 6,6     ( found by equating    y =  x   and   y = -x +12 ) 
 (6,6) IS THE midpoint BETWEEN the original point (5,7) and the reflected point (x,y)  
     so      ( 5+x ) / 2 = 6    and    (7+y) / 2 = 6    shows  (x,y) to be    (7, 5) 
  
 This is pretty easy to see with a line  y = x .....but this is the method to use for more diffiicult line equatins such as ' y = 5x '    etc......
 