The roots of polynomial $ p(y) $ are:
$$ \begin{aligned}y_1 &= \dfrac{ 5 }{ 2 }+\dfrac{\sqrt{ 7 }}{ 2 }i\\[1 em]y_2 &= \dfrac{ 5 }{ 2 }- \dfrac{\sqrt{ 7 }}{ 2 }i \end{aligned} $$The solutions of $ y^2-5y+8 = 0 $ are: $ y = \dfrac{ 5 }{ 2 }+\dfrac{\sqrt{ 7 }}{ 2 }i ~ \text{and} ~ y = \dfrac{ 5 }{ 2 }-\dfrac{\sqrt{ 7 }}{ 2 }i$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.