Because it says hence, you have to use part B. Try dividing both sides by w^4 and then using the fact that w^n+w^(-n)=2cos(npi/9) then use sums to products until you get a product of three cos terms, keeping in mind that cos(5pi/9)=-cos(4pi/9).
Remember z+1/z=2cos2pi/5 and 2cos4pi/5. So by solving the quadratic in (b), you solved a polynomial with roots 2cospi/5 and 2cos4pi/5. Then to get the product you just do sum of roots.