أَحَدَ عَشَرَ — both parts fixed on fatḥ, with the whole expression occupying a syntactic case position.
اثْنَا/اثْنَيْ عَشَرَ — first part declines like the dual, while the second stays fixed.
بَعْلَبَكّ — first part built on fatḥ, second declined like a diptote.
Conclusion: Merely knowing that an expression combines two words does not determine its case behavior; identify which type of compound it is.