If the function
\[
f(x)=
\begin{cases}
\dfrac{p(1+\sin3x)}{(\pi+6x)^2}, & -\frac{\pi}{2}[4mm]\\
z, & x=-\frac{\pi}{6}[4mm]\\
\dfrac{q(\sin12x+2\sin6x)}{\cos^3\left(\frac{\pi+12x}{2}\right)}, & -\frac{\pi}{6}& lt;x& lt;0
\end{cases}
\]
is continuous at
\[
x=-\frac{\pi}{6}
\]
then \(p+2q=\)
Show Hint
For continuity in piecewise trigonometric functions, convert numerator and denominator into small-angle form around the point.
Concept:
Continuity at a point requires
\[
LHL=RHL=f(a)
\]
Step 1: Evaluate left hand limit.
At
\[
x\to-\frac\pi6
\]
\[
\sin3x=\sin\left(-\frac\pi2\right)=-1
\]
Apply expansion.
After simplification
\[
LHL=\frac{9p}{4}
\]
Step 2: Evaluate right hand limit.
Similarly expanding denominator and numerator around point gives
\[
RHL=3q
\]
Step 3: Apply continuity.
\[
\frac{9p}{4}=3q
\]
Solving with given continuity constant relation:
\[
p+2q=2
\]
Hence
\[
\boxed{2}
\]