When two functions are composed it means that we insert one into the other.
For the first one
for that reason we insert the functio in the function q before finding the corresponding image for (-4)
then we find the value for x=-4
for the second one we od the opposite and insert function q into the function r
then we find the value for x=-4