My wife forgot the code to her luggage, but I managed to figure it out.

You can say…. I solved the case.