Mit is a preposition, always adding the third case. In German grammar, the third case of plural nouns always adds n, which is easy to fall out.
If you are not sure about the suffix change of possessive pronouns, I suggest you strengthen the change table.