We are given the values of \(f\) at two inputs, which tells us that the two points \((1,-2)\) and \((3,-5)\) are on the graph of the function. Using these to calculate the slope we find that
\begin{equation*}
m=\frac{-5-(-2)}{3-1}=-\frac{3}{2}.
\end{equation*}
Recall that the point-slope form for a linear function \(f(x)\) can alternatively be written as
\begin{equation*}
f(x)=y_0+m(x-x_0).
\end{equation*}
If we take \((x_0,y_0)=(1,-2)\) we find that
\begin{equation*}
f(x)=-2-\frac{3}{2}(x-1).
\end{equation*}
The formula simplifies to the slope-intercept form
\begin{equation*}
f(x)=-\frac{3}{2}x-\frac{1}{2}.
\end{equation*}