You can put this solution on YOUR website! The slope of the line connecting them is
m = (6-2) / (6-2) = 1
Its midpoint is at (4, 4)
The perpendicular to this line has a slope of -1. Now use the point-slope form...
y - y1 = m(x - x1)
y - 4 = -(x - 4)
y - 4 = -x + 4
y = -x + 8