solve 3x^2-(3k+2)x+3