Look through the peephole on the door to see the name WIST.
Look at the box of chocolates to the left of the bed and see what positions the letters "WIST" are on the box: W = 1, I = 2, S = 6, T = 7.
Tap the shelf above the bed, open the wooden panel, and enter the code 1267 into the safe.
Take the key and use it on the door.
Proceed to the next You Must Escape level!
Hit like if the You Must Escape Level 17 walkthrough helped you! Thanks :)