Hello!
First, let's rewrite the functions below:

alternative A.
We can write it as a composite of 2 functions, look:

alternative B.
First we have to calculate the 10% of discount using the function:

Then, we have to use the other function f(x):

Answers:
a. 35.99
b. 4.68