2025 SSMO Relay Round 2 Problems/Problem 1

Problem

Let $(p,q,r)$ be the real solution to following system: \begin{align*} pq &= 20 \\ qr &= 25 \\ r+p &= 9. \end{align*} Compute $p^2+q^2+r^2$.

Solution