وَرَأَيْتُ الرَّجُلَيْنِ كِلَيْهِمَا وَاثْنَيْنِ.
Translation: And I saw the two men, both of them, and two additional men.
الرَّجُلَيْنِ: direct object, accusative with yāʾ.
كِلَيْهِمَا: emphatic expression, accusative with yāʾ.
اثْنَيْنِ: coordinated accusative form with yāʾ.
Why? The persons seen after the verb رَأَيْتُ function here as its direct objects.