You can put this solution on YOUR website! To be perpendicular, the slope of the second line must be the negative reciprocal of the first line.
The slope of the first line is 1 and the line is
SO the second line is in the form
You are given a point on the line as (-2,5)
So the line is