This is the second part of the answer to webwork problem 7- composition of functions.