In exchanging two dirhams and one dinar for two dinars and one dirham, how are the considerations allocated?

Bab al-Sarf: Mixed Currency Exchanges, Debased Coins and Obsolescence