In bayna al-mīlayni al-akhḍarayni, bayna is an adverbial expression of location and the first element of an idafa. Al-mīlayni is a genitive dual noun with yāʾ.
Al-akhḍarayni is an agreeing adjective: dual, definite and genitive, describing the two green markers.