P, Q, R, and S are four friends located at different places of the city. What is the equation for the friends who are farthest away from each other?