for 1a, k = 1 does not work because when we plug in k = 1 and x = 3 we end up with two different values for each piece, which obviously (why is this obvious?) makes the function not continuous.
for 1b. we need to find k so that the function is continuous. meaning, when x = 3, we want both functions to give the same value. how do you think we should proceed?