Simplify (3x+1)^2