In the xy-plane, if the line x + y = k, where k is a constant, is tangent to the graph of y = x^2 + 3x + 1, what is the value of k?

In the xy-plane, if the line x + y = k, where k is a constant, is tangent to the graph of y = x2 + 3x + 1, what is the value of k?