The correct option is A solids
Since solids have much higher elasticity than gases and liquids, they resist a change in their shape but liquids and gases don't resist any change. Therefore, in solids, sound can travel as both transverse and longitudinal waves.