To easily find the slope and the y-intercept, the equation can be put in slope intercept form (y = mx + b) where m is the slope and b is the y-intercept.
In this equation, y = 2x - 5, it is already in that form and so the cumber in front of the x is the slope (2) and the constant number is the y-intercept (-5) - it's negative because of the minus sign in front of the number.
So, the slope is 2 and the y-intercept is -5.
In the equation of a line in the form of
m=slope and b=y-intercept
So in the case of y=2x-5
2=slope and -5=y-intercept
In general the slope and intercept of y=mx+b is
m is the slope and b is the y-intercept.
The above equation the slope is m=2 and b=-5 is y intercept