To solve for k in these cases:
Set the two functions equal to each other
Plug in the value of x where the graph COULD have been discontinuous
Solve for the variable(s) needed.
One variable: Easy, isolate
Two variables: Create two equations (usually linear) and use substitution or elimination to solve.