The standard formula for a line is
y=mx+b
where m (coefficient of x) is the slope.
For y=2-5x
Here coefficient of x is -5, so m= slope = -5
The intercepts can by found by setting x and y to zero and solve for y and x.
x-intercept: set y=0 => 0=2-5x => x-intercept=2/5
y-intercept: set x=0 => y=2-0 => y-intercept = 2