The second type of wave produced by an earthquake is an S wave (secondary wave), which is a transverse wave. It produces:

A) a back-and-forth motion on the surface of the earth
B) an up-and-down motion on the surface of the earth