Go to the barrel with the candle on top and use the torch to melt away the wax on the barrel to reveal four shapes: circle triangle square circle
Use the key to unlock the chest and put in the same shapes shown on the barrel:
row 1 = circle triangle, row 2 = square circle
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 5 walkthrough helped you! Thanks :)