A perpendicular line has a slope that is the negative inverse of the reference line, which is y = x-12. The slope here is 1, so the negative inverse would be -1/1, or -1. The perpendicular line would therefore be:
y = -1x + b
We can find b by using the given point (3,-7) as a solution: