To solve for a variable means to ISOLATE the variable on one side of the equation. To do so, divide both sides by the coefficient of y.
Look:
2y/2 = (-x+7)/2
Answer: y = (-x + 7)/2
The answer can also be written as
y = -(x/2) + (7/2)
Both answers mean the same thing.