From a point P, R is 5km due west and 12km due south. Find the…