What happens to the speed of sound as it travels through a gas and into a solid?

As sound travels from a gas to a solid, its speed increases significantly. This is because the particles in a solid are closely packed and have stronger cohesive forces compared to those in a gas. Consequently, the sound waves can propagate faster through the solid medium. In general, the speed of sound is much higher in solids than in gases.