Determine the quadratic equation whose solutions are: 3 and -2

Solution(with workings):

we'll work backwards:

x = 3 and x = -2
x - 3 = 0 and x + 2 = 0
then we multiply both these functions of x:
(x - 3)(x + 2) = 0
x^2 - 3x + 2x - 6 = 0
x^2 - x - 6 = 0

hope this helps~ :)