The teacher will be very surprised to see your correct solution 😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(6)^2 - 4 * (1) * (2) = 28
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
sum
___ ___ -3 - \/ 7 + -3 + \/ 7
=
-6
product
/ ___\ / ___\ \-3 - \/ 7 /*\-3 + \/ 7 /
=
2
2
___ x1 = -3 - \/ 7
___ x2 = -3 + \/ 7
x2 = -3 + sqrt(7)