A linear function h has a graph in the xy-plane with a slope of −2 and passes through the point (3,−1). Which equation represents h(x)?
h(x)=−2x−1
h(x)=−2x+5
h(x)=−2x−7
h(x)=−2x+3