Then you use the two equations and , to figure out what is.
So in your case this works as follows
Now you apply to both sides to get the general solution
Finally you have that and , in other words , which means, (we don't need the general solution for here).
Thus you have
Now, from these infinitely many solutions you need to pick those, that lie in the reqired intervall.