P-waves travel fastest and arrive first.

S-waves (shear waves) travel perpendicular to the P-wave.

They've worked out the physics of waves bouncing off the crust (to reflect around to the other side of the world) and off the core.

The Jiggling Earth - Or What are All Those Squiggles?

Cheers,
Scott.