How do you use the remainder theorem to determine the remainder when the polynomial 3x^3-12x-2 is divided by x+2?