I'm studying for an upcoming exam and I came across this problem:

10 seconds separate the P- and S-wave arrival times of an earthquake which shakes you 1m. How far away is the earthquake epicenter and what is the magnitude?

I'm stuck and would really appreciate the help! Thanks!