How did they get there? What were they doing in a cave? How were they even found?
Tough one - maybe some could swim and others not and they got the swimmers out- if you are freaking out (cant swim) it becomes very dangerous for the rescuers. Maybe a general anaesthetic, put them into an air filled sack, and drag them through? Better for the mental health of them than to stay down there for months, which might not be an option anyway when the monsoon really comes. Reminds me of that swim on the sinking boat where they had to let themselves drown and be resuscitated once they had swam through. Some out of the box thinking required but hopefully home in time for tea.