Find the minimum value of 3x2−18x+403x^2-18x+403x2−18x+40 and the value of x x\,x at which it occurs.