ANSWER:
![f(x)=4x-2](https://img.qammunity.org/2023/formulas/mathematics/college/v1ufea4h7n4h5uzz9uvhkc7af8upaly1pc.png)
Explanation:
A linear function has the following form:
![\begin{gathered} f(x)=mx+b \\ \text{ where m is the slope and b is y-intercept} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/lsy10gal8ts8a5pnko12fjj4fw8op3wk8w.png)
The value of the slope is calculated as follows:
![m=(f(x_2)-f(x_1))/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/college/6ro9ayxsgovn9awoytqw0slfc65hsgndh6.png)
We calculate in this case, and we will obtain:
![m=(18-6)/(5-2)=(12)/(3)=4](https://img.qammunity.org/2023/formulas/mathematics/college/rh7glznpml2q3t2zvw5euasyfjhogr1ez2.png)
Now, the value of p, we can calculate it in the following way:
![\begin{gathered} f(x)=4x+b \\ 6=4\cdot2+b \\ b=6-8 \\ b=-2 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/hu525j01wjlul46vfv9l23yb1kxpwgppip.png)
Therefore, the linear function would be:
![f(x)=4x-2](https://img.qammunity.org/2023/formulas/mathematics/college/v1ufea4h7n4h5uzz9uvhkc7af8upaly1pc.png)