You need to rewrite the given equations in standard form y = mx +b, where m is the slope.
First equation:
x + 2y = 0
Subtract x from each side:
2y = -x + 0
Divide both sides by 2:
y = -x/2 +0 = y = -1/2x +0
This give you a negative 1/2 slope
The first equation is the correct one.