Let $A,B,C$ be angles of an acute triangle with \[ \begin{aligned} \cos^2 A + \cos^2 B + 2 \sin A \sin B \cos C &= \frac{17}{9} \text{ and} \\ \cos^2 B + \cos^2 C + 2 \sin B \sin C \cos A &= \frac{11}{10} \end{aligned} \] There are positive integers $p$, $q$, $r$, and $s$ for which \[ \cos^2 C + \cos^2 A + 2 \sin C \sin A \cos B = \frac{p-q\sqrt{r}}{s}, \] where $p+q$ and $s$ are relatively prime and $r$ is not divisible by the square of any prime. Find $p+q+r+s$.
← Back to Problem 1,035