Key idea: The tangent lengths from the vertices are s−a, s−b, s−c. Write them as n−2,n,n+2 and use the cosine rule at P.
- P is the largest angle, so QR=p is the largest side. Then the tangent length from P is the smallest: PN=PM=s−p=n−2, while QL=n and RM=n+2 (or the reverse, which gives the same triangle).
- Sides: p=QL+LR=n+(n+2)=2n+2, q=PR=(n−2)+(n+2)=2n, r=PQ=(n−2)+n=2n−2.
- cosP=2qrq2+r2−p2=2⋅2n(2n−2)4n2+(2n−2)2−(2n+2)2=8n(n−1)4n2−16n=2(n−1)n−4=31.
- 3n−12=2n−2⇒n=10. The sides are 22,20,18.
- Of the options, 18 and 22 appear.
Answer: (B), (D)