1)
Why did Yehoshua tear his clothes and fall on his face?
1.
Malbim: He tore his clothes due to those killed. He fell on his face to pray.
2)
Why did they put earth on their heads?
1.
Malbim: This was to show 'we are considered [lowly] like earth.'