5. a) The arrow diagram for F o G should have the set X on the left and the set Z on the right. To determine where to place the arrows, start at each element of X and trace a path to decide which element of Z is the correct image.
b) Recall that in the arrow diagram of an onto function every element in the co-domain has an arrow pointing to it.