Two employees stepped in elevator. The doors on the elevator closed but didn't operate. Another employee was alerted of situation. Arrangement made to contact repair service. Employees able to clear the elevator about 6:10 , after being stuck for approx. 40 minutes. MSHA was notified of the entrapment about 5:50 then updated at 6:15.