Eliphaz, Bildad, and Zophar are men's names. Teman was a city in Edom. Shuhites are the decedents of Abraham and Keturah. Naamah was a city in Canaan. (See: [[rc://en/ta/man/jit/translate-names]])
Here the words "mourn with" and "comfort" share similar meanings. The friends try to comfort Job by mourning with him. Alternate translation: "to grieve with Job in order to help ease his suffering" (See: [[rc://en/ta/man/jit/figs-doublet]])