Answer: [tex]p=7, q=3[/tex]
Step-by-step explanation:
The midline of the function is
[tex]\frac{10-4}{2}=3 \implies q=3[/tex]
This means that to obtain a maximum of 10, when [tex]\sin x[/tex] reaches it's maximum, 1, [tex]g(x)=p+q=10 \implies p=7[/tex]