The line which we needed is perpendicular to a line whose slope is (-1) .
the product of the slopes of two lines which are perpendicular is equal to -1
let the slope of the line which we need to find be m_1 and the slope of the other line be m_2 = -1
`m_1 * m_2 = -1`
=> `m_1 = -1/(m_2) = -1 /(-1) = 1`
so , `m_1 = 1`
and the line of slope `m_1` passes through the point `(-2,2)`
then the line is
`y = mx+c`
=> `y = (1)x +c`
as it passes through `(x,y)=(-2,2)` so
=> `2= (1)(-2) +c`
=>` 2= -2 +c`
=> `2+2 = c`
=> `c = 4`
so the equation of the line is `y= x+ 4` and the graph plotted is as follows in the attachments. the point `(-2,2)` is spotted with a blue dot.