How to solve quadreatic equation by using the quadratic formula?