For a line to be equally inclined on the axes angles between the line and both the x and y axis should be equal. Hence, we have:
Slope (m) = tan (45o) = 1
So, equation of the line will be:
y = mx + c , where c is the y-intercept.
or, y = 1 × x + (-5)
or, y = x - 5