هَاتَانِ مُعَلِّمَتَانِ.
Translation: These are two female teachers.
هَاتَانِ: nominative dual subject with alif; مُعَلِّمَتَانِ: nominative predicate with alif.
رَأَيْتُ هَاتَيْنِ الْمُعَلِّمَتَيْنِ.
Translation: I saw these two female teachers.
هَاتَيْنِ: accusative dual demonstrative with yāʾ; الْمُعَلِّمَتَيْنِ: accusative apposition with yāʾ.