10. The equations $x^{2}+a x+b=0$ and $x^{2}+b x+a=0$ both have real roots. It is known that the sum of the squares of the roots of the first equation is equal to the sum of the squares of the roots of the second one, and that $a \neq b$. Find the value of $500+10(a+b)$.