We know that f(x) is a linear function so first we need to calculate first the slope
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]where in our case
y1=24, x1=5
y2=120, x2=17
we substitute the values
[tex]m=\frac{120-24}{17-5}=\frac{96}{12}=8[/tex]then we will use the form of slope-point in order to find the y-interceot}
[tex]y-24=8(x-5)[/tex]then we isolate the y
[tex]\begin{gathered} y-24=8x-40 \\ y=8x-40+24 \\ y=8x-16 \end{gathered}[/tex]therefore for f(x)
[tex]f(x)=8x-16[/tex]