What are functions

Identify the function rule from the values in the table

Table:

x | y

2 | 4

4 | 8

6 | 12

The function rule is y = 2x.