As we can see we have the parent function

as we can note in the problem said that g(x) has the same shape, therefore we only have displacements
We have a displacement to the right by 2 units so we will subtract 2 to the x and a displacement up by one unit we need to add 1 to the function
therefore G(x) is
