In a square two diagonals intersect perpendicularly.
Since, equation of one diagonal of a square is 7x−y+8=0 ∴ The equation of another diagonal will be x+7y+λ=0.
This diagonal passes through the point (−4,5) . ∴−4+35+λ=0 ⇒λ=−31 ∴ The required diagonal is, x+7y=31