Find two right-angled triangles. For each of these two right-angled triangles you have given a hypotenuse and one of the two legs. Apply the Pythagorean theorem and find the second leg for each of the two right-angled triangles. Then two options are possible: a) QR is the sum of lengths of these legs, or b) QR is the difference (if the original triangle is obtuse).