So I was given the following question:
"The continuous function $f$ is defined on the interval $-5 \leq x \leq8$. The graph of $f$, which consists of four line segments, is shown in the figure above. Let $g$ be the function given by $g(x)=2x+\int_2^1f(t)dt$. Find $g(0)$ and $g(-5)$."
I'm a bit confused on how I'd go about tackling something like this. Would I literally just take the given values of $f(x)$ on the graph and use then in finding the values that were asked for? Any help would be appreciated!

Yeah. I think that if they give you a picture, then it might be because they want you to extrapolate data from it (also notice that it gives you the scale of the plane). But you can just use the marked points as a reference to reconstruct $f(x)$ using the equation of a line given two points.
In that sense, you're right. You would have to integrate $f(x)$ within the given bounds by first reconstructing it. This is how it should look like:
However, you could just reconstruct the function within the integration bounds.
Note that the previous part implies that:
Finally, you have to evaluate $g(x)$ at the given values of $x$.