Find $z$ such that $|z-w| - |z-w^2|$ is maximal where $z$ lies on the curve $|z-4| + |z+4| = 10$, where $w$ is a non real cube root of unity.
I found the locus of the $z$ from the given equation, which is an ellipse but am unable to proceed after it.
The locus that I found was $ \frac{x^2}{25} + \frac{y^2}{9} = 1$ where I assumed $z = x + iy$ .
I am a class 12 student who came across this problem in one of the online exams that I was supposed to give for my coaching.

The points that maximize the difference of the distance will lie, by triangle inequality, on the line joining the two points i.e on $x =-\dfrac{1}{2}$. This line intersects the ellipse at $\left(-\dfrac{1}{2}, \dfrac{9\sqrt{11}}{10} \right)$ and at $\left(-\dfrac{1}{2}, -\dfrac{9\sqrt{11}}{10} \right)$
From this we readily obtain the difference of distances as $\sqrt 3$