Use the slope-intercept form of the linear equation to write…