Please see the work below.
Work Step by Step
We know that the sound travels faster in denser mediums. The reason behind this is that sound is a longitudinal wave and propagates by compression and rarefaction which means molecules collide with each other transferring the wave. Hence, if the medium is denser, then more molecules are there and these molecules collide with each other more rapidly, and sound is transferred faster.