Two sentences contain مُسْلِمَاتٍ with the same ending. What determines whether it is accusative or genitive?

Noun Case Classes: Type 2 — Sound Feminine Plural