The first part of the function rule for the values in the table below is Y equals X over two. What is the complete function rule?

Given:
The tabular representation having different values of x and y.
Required:
The relation between x and y.
Explanation:
When x = 6 and y = 2,
[tex]y\text{ = }\frac{6}{2}\text{ = 3 }\Rightarrow\text{ 3 - 1 = 2 = x}[/tex]When x = 8 and y = 3,
[tex]y\text{ = }\frac{8}{2}\text{ = 4 }\Rightarrow\text{ 4-1 = 3}[/tex]When x = 10 and y = 4,
[tex]undefined[/tex]