When pulling the pink spring pin, yellow desk moves forwards, turns 90 deg. and stops at open position under the actions of red spring, green pin and the slot on the blue base.
Push the desk backwards to get closed position when the pink spring pin enters the slot on the blue base.