Two escape strategies
Common octopuses used one of two strategies depending on the hole's size. When the hole was wider than the distance between their eyes, they pushed themselves through in three steps: first snaking one or two arms through, then threading a couple more arms through, and finally using the arms already on the other side to push against the box and yank their head and remaining arms through in one movement. The whole operation took a few seconds.
When the hole was narrower, common octopuses added a fourth step. They shoved all of their arms through the hole first and then squished their head and bulbous mantle through.
Mayan octopuses behaved more cautiously. When confronted with the narrower hole, they did not attempt to fit inside it and usually ignored it. This difference could stem from their biology or how they have adapted to their environments, according to Michael Kuba, a biologist at the University of Naples Federico II in Italy. Mayan octopuses live in sandy, rocky areas, so while they might disappear under rocks, they do not often need to cram through holes, he says.