Find terms with coefficients a, b, c and substitute the values into the quadratic equation