The correct option is B both
Mechanical waves (longitudinal waves and transverse waves) are waves which propagate through a material medium (solid, liquid or gas) at a wave speed which depends on the elastic and inertial properties of that medium.
The transverse waves depends on the rigidity of the medium hence, can propagate through solid and liquid medium but not through gases.
The longitudinal waves depends on resistance to compression or volume elasticity of the medium hence, can propagate through solid, liquid and gases.