Graph the function using the slope and y-intercept.f (x) = 2…