וַיִּקְרַ֨ע יְהוֹשֻׁ֜עַ שִׂמְלֹתָ֗יו וַיִּפֹּל֩ עַל־פָּנָ֨יו אַ֜רְצָה לִפְנֵ֨י אֲר֤וֹן יְהוָה֙ עַד־הָעֶ֔רֶב ה֖וּא וְזִקְנֵ֣י יִשְׂרָאֵ֑ל וַיַּעֲל֥וּ עָפָ֖ר עַל־רֹאשָֽׁם׃ Joshua thereupon rent his clothes. He and the elders of Israel lay until evening with their faces to the ground in front of the Ark of the LORD; and they strewed earth on their heads.
This is in Joshua 7:6...how were there any elders didnt they all die in the desert?