Using Vieta's formulas for a quadratic equation, the sum of the roots is equal to negative b divided by a. For the equation x squared plus k x plus 12 equals 0, the sum of the roots is negative k. Since the sum is given as 7, negative k equals 7, which means k equals negative 7.