sound waves travel faster in solids than in liquids, and faster in liquids than in gasses. While the density of a medium also affects the speed of sound, the elastic properties have a greater influence on the wave speed.
hope this helped
9.4m questions
12.2m answers