مَرَرْتُ بِاثْنَيْ عَشَرَ طَالِبًا — I passed by twelve students.
بِـ: preposition.
اثْنَيْ: genitive after the preposition, marked by yāʾ on the dual pattern.
عَشَرَ: fixed second part.
طَالِبًا: accusative tamyīz.
Accusative and genitive share the form «اثْنَيْ», but the syntactic reasons differ: object position in one case, a preposition in the other.