\(x-y=5\Rightarrow\left(x-y\right)^2=25\)
\(\Leftrightarrow x^2-2xy+y^2=25\)
\(\Leftrightarrow-2xy=25-\left(x^2+y^2\right)\)
\(\Leftrightarrow-2xy=25-15=10\)
\(\Rightarrow xy=-5\)
\(x^3-y^3=\left(x-y\right)\left(x^2+xy+y^2\right)\)
\(=\left(x-y\right)\left(x^2+y^2+xy\right)\)
\(=5.\left[15+\left(-5\right)\right]=50\)