Two men, A and B, walk from P to Q, a distance of 21 km, at 3 and 4 km/h respectively. B reaches Q, returns immediately, and meets A at R. Find the distance from P to R.