y = 1/2 x + 4.
This is a straight line when plotted as a graph. Its gradient is 1/2 and its y-intercept is 4.
y = 1/2 x + 4 using -1, 0, 1, 2? I don't know which variable is -1, 0, 1, 2 do you want. x = -1, 0, 1, 2 or y = -1, 0, 1, 2?
I only can tell you that you should substitute the numbers into either x or y(depends on which you want), and then compute the value of the other variable.