Need help with math question attached.

Answer: QR = 22.4
Step-by-step explanation:
We would apply the law of Cosines which is expressed as
a² = b² + c² - 2abCosA
Where a,b and c are the length of each side of the triangle and A is the angle corresponding to a. Likening the expression to the given triangle, it becomes
QR² = RS² + QS² - 2(RS × QS)CosS
QR² = 35² + 40² - 2(35 × 40)Cos34
QR² = 1225 + 1600 - 2(1400)Cos34
QR² = 2825 - 2800 × 0.8290
QR² = 2825 - 2321.2
QR² = 503.8
QR = √503.8
QR = 22.4 to the nearest tenth