Determine the equation of the line passing through the points (3,1) and (5,−1).

Write the linear equation in slope-intercept form y=mx+b.