Which of the following tables represents a linear function?

x −2 −1 0 1 2
y 5 2 1 2 5

x −2 −1 0 1 2
y 5 3 1 −1 −3

x 3 3 0 3 3
y −2 −1 0 1 2

x 0 1 2 3 4
y 0 −1 2 −3 4

The table that represents a linear function is:

x -2 -1 0 1 2
y 5 2 1 2 5