Write the equation of the line in slope-intercept form, if possible, given the slope and a point that lies on the line. If the slope-intercept form…