Step 1: Apply the properties of AM and GM.
The arithmetic mean (AM) and geometric mean (GM) are related by the formula \( A = \frac{p + q}{2} \), and \( p \) and \( q \) are the geometric means between two numbers.
Step 2: Conclusion.
After applying the relations, we find that \( \frac{p^2}{q} + \frac{q^2}{p} = 2A \).
Final Answer:
\[
\boxed{2A}
\]