What is the relationship between the values X and Y in the table below, and what is the corresponding function rule?

table
X } 2 , 4 , 6
Y } 1 , 0 , -1