Which characteristic of the medium determine the velocity of sound waves?

The velocity of sound waves in a medium is determined by (i) elasticity, (ii) density of the
medium