To translate vertically a function we make the transformation:
where c is the number of units we want it to move. If c is positive then we move the function up, whereas if c is negative we move the function down.
Then in this case we have that c=-8, then the function g would be:
Therefore: