Graph f(x) has a slope of -2 which is found by using m=y2-y1/ x2-x1 when given two points. Since the two points given were (0,3) and (1,1), you plug them into the formula with each corresponding point. In the formula the subscripts show which ordered pair is used. The point (0,3) being the first given pair would be (x1, y1) and (1,1) being the second point it would be (x2, y2)
So m=1-3/ 1-0
m=-2/ 1
m=-2
Slope= -2
In the function g(x) the slope is given since it is in slope intercept form.
In slope intercept form,
y=mx+b
m represents slope and b represents the y intercept. So in the function g(x)= -2x-5 the slope is -2 which is the same as graph f(x)