solve by completing the square - Search