سَلَّمْتُ عَلَى الطَّالِبَيْنِ.
Translation: I greeted the two students.
عَلَى: preposition.
الطَّالِبَيْنِ: genitive noun, marked by yāʾ because it is dual.
Remember: In “رَأَيْتُ الطَّالِبَيْنِ” the noun was accusative. Here it is genitive because of عَلَى. The same yāʾ ending appears in both cases.