Which seismic waves compress and expand rocks in the direction the waves travel?

AP waves
BS waves
CSurface waves