How did ancient translators learn a different language?

by FamousAverage

So I was sure how to phrase the title question but I'll give an example, so if the Romans wanted to communicate with the Egyptians for example I would assume they need a translator. How would Romans learn Egyptian or vice versa?

inormallyjustlurkbut