A hammer taps on the end of a 4.0 m long metal bar at room temperature

A hammer taps on the end of a 4.0 m long metal bar at room temperature. A microphone at the other end of the bar picks up two pulses of sound, one that travels through the metal (arriving first) and one that travels through the air. The pulses are separated in time by 7.80 ms. What is the speed of sound in the metal?