First it didn’t work. So followed these exact steps, the first step of the sequence is missing in the tutorial (point it to me if I missed it in the tutorial)
1. Object > Set Origin > Origin to Geometry
2. Rotate the top lid in Object mode
3. Select both pieces so that cube.001 is the active object
4. CTRL + L to link Object data