The speed of sound is $v=\sqrt{K/\rho}$, where $K$ and $\rho$ are the bulk modulus and the density of the medium, respectively. The bulk modulus is the reciprocal of the compressibility of the medium. Using $1$ atm $\approx10^5$ Pa, we obtain the bulk moduli of mercury, water, and air as $3.3\times10^9$,$2.0\times10^9$, and $1.4\times10^5$ Pa, respectively. Thus, the speeds of sound in these media are roughly $500$,$1400$, and $340$ m/s, respectively.