If the S wave comes before the P wave, the closer the
epicenter. That’s the relationship among the P and S waves, together with the
epicenter.
To add, P- and S- waves are wo types of seismic wave that exist. While the
point on the earth's surface vertically above the focus of an earthquake is
called the epicenter.