جَاءَ أَخُوكَ. — أَخُو is nominative with wāw (six nouns).
جَاءَ أَخَوَانِ. — أَخَوَانِ is nominative with alif because it is now dual.
رَأَيْتُ أَخَاكَ. — أَخَا is accusative with alif.
رَأَيْتُ أَخَوَيْنِ. — أَخَوَيْنِ is accusative with yāʾ.
Lesson: Different noun forms built from one root may belong to different case patterns.