单项选择题

What did P and S waves help scientists discover about the layers of the earth

A.How deep they are.
B.Where earthquakes form.
C.How hot they are.
D.What purpose they serve.