Transverse and longitudinal waves problem