What quantitative condition governs exchanging two sound plus one ghallah dirham for one sound plus two ghallah?

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