We know that f(x) is a linear function so first we need to calculate first the slope
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/78uaqhwt0aws3qfwxigaftpihnmb1gzxtp.png)
where in our case
y1=24, x1=5
y2=120, x2=17
we substitute the values
![m=(120-24)/(17-5)=(96)/(12)=8](https://img.qammunity.org/2023/formulas/mathematics/college/v0iem5fijqatdwv3xi4m4gnq2r6jfv2sg0.png)
then we will use the form of slope-point in order to find the y-interceot}
![y-24=8(x-5)](https://img.qammunity.org/2023/formulas/mathematics/college/vd4kqgq2lc31n4xr8rklj4ijrdtlk7ikxf.png)
then we isolate the y
![\begin{gathered} y-24=8x-40 \\ y=8x-40+24 \\ y=8x-16 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/n59f4zu2x9sq0lg8r4tz5vuihz6k8x90os.png)
therefore for f(x)
![f(x)=8x-16](https://img.qammunity.org/2023/formulas/mathematics/college/3lcf49n6ysntjuyu3owe69s0pi0l3gxyts.png)