Answer: No, it is not a solution.
Work Shown
y = x-5
4 = 7-5
4 = 2
We don't get the same thing on both sides, so the last equation is false. It means the first equation is false when (x,y) = (7,4).
Therefore the point (7,4) is not a solution to the equation y = x-5
Visually, the point (7,4) is not on the line.