You have chosen, which to me is, a strange method of solution, but the results look OK.

Simply substitute any integer values for k that will give you a value for x in the required range.

That's k=-1 for your first solution and k=1,2,3 for the second.