The speed of sound in air is

The pulse moving in air covers a distance of

with this velocity, so the time it takes is

The problem says that the second pulse (moving in the metal bar) arrives with a delay of

. Therefore, the time

at which the pulse in the metal arrives at the microphone is

The distance covered by this pulse is still

, therefore we can find the speed of the pusle in metal (so, the speed of sound in this metal):
