find the values of x. Also find the distances QR and PR.