Explanation
Correct answer: 21.
It's given that the equation has infinitely many solutions. If an equation in one variable has infinitely many solutions, then the equation is true for any value of the variable. Subtracting from both sides of the given equation yields . Since this equation must be true for any value of , the value of is .
Desmos solution:
Note: For infinitely many solutions, the constant terms must match, so k=21.
Enter in Desmos:
Reviewed and rewritten by CookSAT