We are told that
If we were given the graph of f(x), note that in this equation we add 5 to the value of f(x) to find the value of g(x). So, in terms of the graph, as we are taking the final value of f and adding 5, this means that we are moving the graph of f 5 units up. That is the graph of g(x) is the graph of f(x) shifted 5 units up