When x^2-5x+3c is divided by x-3 the remainder is -12. What is the value of c?