I WILL GIVE BRAINLIEST TO THE CORRECT ANSWER!!!

Scientists are able to learn about Earth's interior by studying S and P waves. Describe how these waves offer insights into the Earth's layers.