You should note that , so
From the second equation, we can see that either or .
and since the hyperbolic cosine is always positive, that means we can only accept even values for , so and .
So the first solution is .
See if you can get the second solution, for where .