What’s the answer I’m not sure how to do this

Step 1:
To write the function of the table, pick two values from the table and generate an equation of a line for the function.
The two coordinates are:
( 1 , 2 ) and ( 2, 4 )
Step 2:
Use the two points equation of a line to find the function.
[tex]\begin{gathered} \frac{y-y_1}{x-x_1}\text{ = }\frac{y_2-y_1}{x_2-x_1} \\ \frac{y-2}{x-1}\text{ = }\frac{4-2}{2-1} \\ \frac{y-2_{}}{x-1_{}}\text{ = }\frac{2}{1} \\ \text{Cross multiply} \\ y\text{ - 2 = 2x - 2} \\ y\text{ = 2x - 2 + 2} \\ y\text{ = 2x} \end{gathered}[/tex]Final answer
The function that represents the table is given below:
f(x) = 2x
Option A