22 years.
The Torah doesn't mention a specific city, only that they were slaves in the country of Egypt.
They were slaves
Well it could be famine. As we see Joseph was sold to the land of Egypt. It could also be as slaves after a war.
At that time, the Hebrews were slaves in Egypt.
They were slaves to Pharaoh.
The Torah states they were slaves in the land of Egypt
The Torah states they were slaves in the land of Egypt.
ancient Egypt
They were escaping a famine, and they were invited to Egypt by Joseph.
The Hebrews of Moses' time were slaves in Egypt. They wanted to be free in a land they could call their own.
Slaves
Hebrews were never slaves in Egypt. There is no record of such thing beyond a book of bias written by the Jews.