P waves (aka primary waves) are the fastest waves. It's a seismic body wave that shakes the ground back and forth in the same direction and the opposite direction as the direction the wave is moving.
S waves (aka secondary waves) move through the earth by causing particles in rocks to move side to side
hope that helps :)