Let \(P(x)=px^2+qx+r\). For \(\frac{P(x)}{\sin(x-2)}\to7\) as \(x\to2\), write \(\frac{P(x)}{x-2}\cdot\frac{x-2}{\sin(x-2)}\); the second factor tends to 1, so \(\frac{P(x)}{x-2}\) must tend to 7, which needs \(P(2)=0\) and \(P'(2)=7\).
\(P(2)=4p+2q+r=0\), \(P'(2)=4p+q=7\), \(P(3)=9p+3q+r=9\).
Subtracting the first from the third: \(5p+q=9\); with \(4p+q=7\): \(p=2,\ q=-1\), \(r=-6\). So \(P(x)=2x^2-x-6\).
\(P(5)=50-5-6=39\).
Answer: 39