The tenth plague was the death of the firstborn of Egypt, which was also the salvation of the people of Israel.
Adam was a type of Christ, each having the same role as the representative of his people, but with opposite outcomes.
Because of God’s work of salvation in us, we need to work out our salvation.