Here "you" refers to God. Yahweh punishing his people as much as they needed is spoken of as if God's punishment were something that could be measured. Alternate translation: "But you did punish them as much as was needed" (See: [[rc://en/ta/man/translate/figs-you]] and [[rc://en/ta/man/translate/figs-metaphor]])
Yahweh's power to send his people away to a foreign country is spoken of as if Yahweh used his breath to blow them to a foreign country. Alternate translation: "the power of Yahweh drove them out like a fierce wind from the east" (See: [[rc://en/ta/man/translate/figs-metaphor]])