Simplify 6(2c-cd^2+d)