Three masses, X, Y and Z lie in a straight line. X has a mass of 5 kg and is
moving towards Y at 8 m/s. Y has a mass of 7 kg and a velocity of 4 m/s, and is
moving towards Z. Determine the mass of Z assuming all three masses have a
common velocity of 2 m/s after the collision of X and Y with Z.