Given the functions p(x) and q(x) defined as:
We can use the definition of composite functions:
Then, to calculate (p o q)(2) = p(q(2)), we need to calculate q(2) first:
Using this result on the composition:
Now, for (q o p)(2) = q(p(2)), we already calculate p(2) = 7. Then: