how to solve x squared +3x + xk + 3k