#He gathered up ... He put

Here "He" stands for Joseph's servants. AT: "Joseph ordered his servants to gather ... They put" (See: [[:en:ta:vol2:translate:figs_metonymy]])

#Joseph stored up grain like the sand of the sea

This compares the grain to the sand of sea to emphasize its great quantity. AT: "The grain that Joseph stored was as plentiful as the sand on the seashore" (See: [[:en:ta:vol1:translate:figs_simile]])

#Joseph stored up ... he stopped

Here "Joseph" and "he" stand for Joseph's servants. AT: "Joseph had his servants store up ... they stopped" (See: [[:en:ta:vol2:translate:figs_metonymy]])