Quadratic equation in terms of 5