Write a linear function for the data in each table using function notation.
x 1, 2, 3, 4
y 4, 10, 16, 22

x 1, 2, 3, 4
y 1.5, 4, 6.5, 9