The standardised equation for a straight line is y=mx+c
Where m is the gradient and c is the y-intercept.
So directly from the information in the question:
Slope(gradient)-m=-1/2
y-intercept-c=-5
so y=mx+c is y=-1/2x-5
Hope this helps can you mark me brainliest?!