The equation of a line is written as y = mx + b where m is the slope.
Replace M with the slope to get:
y = 1/2x + b
Now replace x and y with the given point to solve for b:
5 = 1/2(-2) + b
SImplify:
5 = -1 + b
Add 1 to both sides:
b = 6
The equation of the line is y = 1/2x + 6