The rescuers dubbed it "mission impossible" but they defied the odds to locate the 12 boys and their football coach deep in a cave complex.

However, the hard part may yet be ahead: getting them out safely.

Here are a few ways the hungry and weak boys could get out, but none of them are easy options.

Could they dive out? 

In theory yes: but it is an extremely difficult task. Cave diving is already very risky, especially for young boys in a weakened state who have no diving experience. 

Tham Luang cave where the boys have been trapped is one of Thailand's longest at 10km and one of the hardest to navigate with its winding and at times narrow corridors.

If they dive, they have no choice but to follow the steps that rescuers took though tiny passageways clogged with mud and silt.

That journey takes a healthy - and skilled - Navy SEAL diver about six hours.  

Officials said they would attempt to train the boys to use crucial diving gear after they are rehabilitated with food, water and medical support.

"Cave diving is a very technical skill and it's extremely dangerous, especially for an untrained diver," said Anmar Mirza, coordinator of the US National Cave Rescue Commission. 

"So they may end up being better off trying to supply them in the cave until they can be taken out by other means."

The Thai navy prepares air tanks for divers

Could they be dug out?

Explorers have spent days scouring the mountain top for possible alternative openings. They have found a few "promising" leads and have tried to drill deeper.

But there is no indication that any of those chimneys connect to the chamber where the boys have been stranded.

Again, the boys need to spend time getting stronger in the depths of the cave before they can attempt to climb up a second entry - if one is found - or be lifted out.

Read more

What about walking out? 

This would be the safest option, but at the moment it is impossible because parts of the route remain flooded.

So in theory they could wait, but that means hoping that flood waters subside. 

Water pumps are working around the clock to drain the floods but it has been an uphill battle for much of the week as heavy rains refused to let up.

If the current break in bad weather sticks, this option could be more promising. 

But weather forecasters warn downpours may soon return as monsoon season sets in.  

"If the rain fills up the cave system then that might take months before the water drops again," said Belgian diver Ben Reymenants, owner of Blue Label Diving in Thailand who is assisting the search.

The Thai army enters the cave complex

How long could it take?

Hard to say for sure. It depends how long it takes for them to regain strength. 

Experts say they could remain inside for weeks - or even months - as rescuers work out the safest option for their extraction.

The military said it was preparing enough food for four months but did not speculate they could be in there that long. 

Are the boys even in the right mindset to move?

They clearly want to leave. In footage that emerged after the boys were found by two British divers one asked to "go outside".

One of the diver replied: "I know, I understand ... no, not today."

We need your consent to load this rte-player contentWe use rte-player to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences

Even if they are physically fit enough to dive, they will need the mental prowess to stay calm in the murky waters and claustrophobic passageways that stand between them and freedom.

Fortunately, they seem in pretty good shape, considering.

"They're mentally stable which is actually pretty good," Mr Reymenants said. 

"Luckily the coach had the sanity of mind to keep them all together, huddled together to conserve their energy, that basically saved them."