Given the function

Part A.
To write the expression that defines
you have to substitute x-6 instead of x into the function expression and then add 5 to the function:

Part B.
1 transformation is translation 6 units to the right (p(x-6) determines this transfromation).
2 transformation is translation 5 units up (+5 determines this transformation).