Answer:
Not all matter and waves move the same direction, some do though
Explanation:
transverse wave--matter in the medium moves back and forth at right angles to the direction that the wave travels
compressional wave--matter in the medium moves back and forth along the same direction that the wave travels
This is possible because when a star dies, it basically expands to its maximum (explodes). Therefore, the materials of the exploded star mix with the primeval hydrogen of the Universe. Later, other stars are formed out of this mixture. Thats also how the sun was formed. :)