سَلَّمْتُ عَلَى الْمُعَلِّمِينَ.
Translation: I greeted the teachers.
عَلَى: a preposition.
الْمُعَلِّمِينَ: genitive noun, marked by yāʾ.
Compare: «رَأَيْتُ الْمُعَلِّمِينَ» is accusative, but here the preposition requires the genitive. The visible ending is the same.