I have a table and need the math rule but can't figure it out.

If the table is:
X and Y
2 3
4 4
6 5
8 6

What is the rule??

note that as x increases by 2, y increases by 1.

so, y = 1/2 x + something
since 3 = 1/2 (2) + 2, try

y = x/2 + 2

works for me