"The Imprisoned Pair" (閉じ込められた二人, Tojikomerareta Futari) is episode 405 of the Naruto: Shippūden anime.
After falling into the ruins underground, Tenten and Ajisai are forced to cooperate with each other to escape. Outside the ruins, Neji, Lee, Fuyō, and Suiren decide to cooperate as well to find their teammates. Finding a way out, Ajisai and Tenten face a giant ant that leads them to its nest with a way out, however they ended up being chased by them. Ambushed by the ants outside, Team Ajisai and Team Guy face the ant legion to rescue both and simultaneously trying to break the wreckage wall. On the other side, Ajisai tries to seal the big part of the wall. Ajisai's effort, however, isn't enough as she begs Tenten's help to destroy the wreckage wall. Motivated by Ajisai's words, Tenten summons an big amount of water putting an end to the wall. Once on the surface and reunited with their respective teammates, Team Guy and Team Ajisai agreed to not continue fighting and instead promised to meet each other in the third exam.