When performing synthetic division, the divisor is a "zero" of the function. This means it is an x-intercept. To figure out what the factor is associated with this x-intercept, we determine what we would do to the factor to make it equal 0. In this case, we would add 5; this makes our factor, or divisor, x+5.
To find the slope, you use rise/run. In this case... the rise is 5 up and the run is 1 across. Therefore it is 5/1 which is the same as 5. Hope this helped!