\(a^3-3ab^2=5\Rightarrow a^6-6a^4b^2+9a^2b^4=25\)
\(b^3-3a^2b=10\Rightarrow b^6-6a^2b^4+9a^4b^2=100\)
Cộng vế với vế:
\(a^6+3a^4b^2+3a^2b^4+b^6=125\)
\(\Leftrightarrow\left(a^2+b^2\right)^3=125\)
\(\Rightarrow a^2+b^2=5\)
\(\Rightarrow S=10090\)