solving by completing the square - Search