ANSWER:
[tex]f(x)=4x-2[/tex]STEP-BY-STEP EXPLANATION:
A linear function has the following form:
[tex]\begin{gathered} f(x)=mx+b \\ \text{ where m is the slope and b is y-intercept} \end{gathered}[/tex]The value of the slope is calculated as follows:
[tex]m=\frac{f(x_2)-f(x_1)}{x_2-x_1}[/tex]We calculate in this case, and we will obtain:
[tex]m=\frac{18-6}{5-2}=\frac{12}{3}=4[/tex]Now, the value of p, we can calculate it in the following way:
[tex]\begin{gathered} f(x)=4x+b \\ 6=4\cdot2+b \\ b=6-8 \\ b=-2 \end{gathered}[/tex]Therefore, the linear function would be:
[tex]f(x)=4x-2[/tex]