If two lines ar perpendicular their slopes satisfy the following equation:
For line y=x the slope m1=1, so the slope m2 for the line we are finding is:
We know the slope is m2 = -1, now the line pass through the point (-4,7), so the point 9-4,7) satisfy the equation of the line:
So, the equation of the line is: