A man fires a gun and hears its echo after 5 s.The man moves 310 m towards the hill and fires his gun again.This time if he hears the echo after 3 s, calculate the speed of sound.