The first elimination comes in the main match. Then, before anyone has time to recover, the prison match begins to decide who goes next.