Step-by-step explanation
To translate the function up and down, you simply add or subtract numbers from the whole function. If you add a positive number (or subtract a negative number), you translate the function up. If you subtract a positive number (or add a negative number), you translate the function down.
For the given question, we have the parent function as
Since g(x) is obtained by shifting f(x) downwards by 2 units then
The graphs are shown below
Therefore, the value of g(x) is