The teacher will be very surprised to see your correct solution 😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(2)^2 - 4 * (1) * (5) = -16
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
sum
-1 - 2*I + -1 + 2*I
=
-2
product
(-1 - 2*I)*(-1 + 2*I)
=
5
5
x1 = -1 - 2*I
x2 = -1 + 2*I
x2 = -1 + 2*i