There are a few ways to solve this, the simplest of which is probably factoring. Start by finding factors of C (10) that add up to be B (-2).
fac(10) { -10, 1 ; -5, 2 }
Well, there are no factors of 10 that can add to b - so we will use the quadratic formula.
(-b +- sqrt(b^2 - 4ac)) / 2a
where a = 1, b = -2, c = 10
b^2 - 4ac = (-2)^2 - 4(1)(10) = 4 - 40 = -36
-b +- sqrt(-36) / 2a
(2 +- sqrt(-36)) / 2
sqrt(-36)
sqrt(-1 * 36)
sqrt(-1) * sqrt(36)
i * 6
6i
2 + 6i / 2 ; 1 + 3i
2 - 6i / 2 ; 1 - 3i
Solutions: 1 + 3i, 1 - 3i