A transverse wave and a longitudinal wave travelling in the same direction in a medium…