contestada

The function g(x) = p sin x +q, where p>0, has a maximum value of 10 and a minimum value of -4. Find the value of p and of q.