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