i think that it will travel less then that cos it will absorb sound energy
Are you referring to acoustic foam? That's the type of foam which is primarily used in conjunction with sound. It's designed to reduce wave energy the effectiveness of which is determined through a noise coefficient rating. As mentioned above the rate at which the sound is traveling wouldn't differ much to the speed in which it travels through the air.