when a line is perpendicular to another, its slope is the negative reciprocal of the given line. the slope of the given line is -1, so the slope of the new line is 1
y-(-2)=1(x-(-2)) this is the point-slope form
y+2=x+2
y=x+0
this is the slope-intercept form. the slope is 1, the intercept is o