5. The transformations are:
f(x) = x²
f(x + 5) = (x+5)², which translates f(x) 5 units to the left
-f(x + 5) = -(x+5)², which reflects f(x+5) across x-axis
-f(x + 5) + 2 = -(x+5)² + 2 = g(x), which translates -f(x+5) 2 units up
6. The transformations are:
f(x) = x²
f(x + 2) = (x + 2)², which translates f(x) 2 units to the left
f(x + 2) - 7 = (x + 2)² - 7 = h(x), which translates f(x+2) 7 units down.