find a solution for this problem:

(2,4), 1/2 = y

I do not understand your notation. Are you looking for a function y(x) that goes through the point (x=2, y=4), and has slope 1/2?