The graph below shows that the value of k must lie between 0 and 100. Clearly, you want the value of k that just clips the red graph at x = 50, so find the value of y on the red graph at x = 50 using the first equation, plug that into the second equation together with x = 50 and rearrange the resulting expression to find k.
Edit: The value of x = 50 is incorrect - see below.