Use the ejection tool (aka Needle) or Paperclip. Push the tip all the way into the hole until the tray ejects, and then pull the tray out. Should do it for each of the SIM and Memory card (Micro SD) trays.
⚠️️ Pay attention! The tool must be inserted into a hole on the edge of the phone's housing. Do not press too hard. It may break the tray eject mechanism.