Here "land of Egypt" stands for the people of Egypt. Alternate translation: "he rules all the people of Egypt" (See: [[rc://en/ta/man/translate/figs-metonymy]])
Here "heart" stands for the whole person. Alternate translation: "and he was astonished" or "he was very surprised" (See: [[rc://en/ta/man/translate/figs-synecdoche]])