A shell at rest at origin explodes into three fragments of masses 1 kg, 2 kg and m kg. The fragments of masses 1 kg and 2 kg fly off with speeds `12 m//s` along x-axis and `8 m//s` along y- axis. If the m kg piece flies off with speed of `40 m//s` then find the total mass of the shell.