Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: if 6 is one solution of the equation x ^ 2 + 3 x + k = 10 , where k is a constant , what is the other solution ?
Output:
- 9