حَضَرَتِ الطَّالِبَتَانِ كِلْتَاهُمَا.
Translation: Both female students attended. كِلْتَاهُمَا is nominative with alif.
رَأَيْتُ الطَّالِبَتَيْنِ كِلْتَيْهِمَا.
Translation: I saw both female students. كِلْتَيْهِمَا is accusative with yāʾ.
مَرَرْتُ بِالطَّالِبَتَيْنِ كِلْتَيْهِمَا.
Translation: I passed by both female students. كِلْتَيْهِمَا is genitive with yāʾ.