While traveling in the same medium sound, a has a wavelength of 5 m or sound B has a wavelength of 10 m which sound will have a higher pitch

The sound with a shorter wavelength will have a higher pitch. In this case, Sound A with a wavelength of 5 m will have a higher pitch compared to Sound B with a wavelength of 10 m.