The quadratic 3x^2-24x+72 can be written in the form a(x+b)^2+c, where a, b, and c are constants. What is a+b+c?