I'll do the first part for you.
A more reactive metal displaces a less reactive metal from solution. From an examination it can be seen that X displaces Y from solution, therefore X>Y. Z displaces Y from solution, therefore Z>Y. X doesn't displace Z from solution, therefore X<Z
Join them all...