Moses asked Eleazar to divide the plunder from the war between the soldiers who went out to battle and all the rest of the community.