Shift the graph of f left 7 units.
Ignoring everything but what is with the x (x-2) and (x+5)
-2 inside the parentheses is right 2 on the graph
+5 inside the parentheses is left 5 on the graph
so if you want to make f look like g then you have to bring it left 7