Singular case:
مُعَلِّمَةٌ ذَاتُ عِلْمٍ — nominative.
رَأَيْتُ مُعَلِّمَةً ذَاتَ عِلْمٍ — accusative.
مَرَرْتُ بِمُعَلِّمَةٍ ذَاتِ عِلْمٍ — genitive.
The two dual sets are:
ذَاتَا/ذَاتَيْ and ذَوَاتَا/ذَوَاتَيْ.
For example: مُعَلِّمَتَانِ ذَوَاتَا عِلْمٍ — two female teachers possessing knowledge.