An explosion breaks a rock into three parts. Two pieces go off at right angles to each other with 1.0 kg piece with a velocity of 12 m/s and other 2.0 kg piece with a velocity of 8 m/s. If the third piece flies off with a velocity of 40 m/s, compute the mass of the third piece.