How would you calculate the speed of sound in a medium if you knew how far away an object was and how long it took a sound pulse to reach it through that medium?