Let's consider the double-replacement reaction between rubidium hydroxide and phosphoric acid to form rubidium phosphate and water. The cation rubidium replaces the cation hydrogen and the anion hydroxyl replaces the anion phosphate. The balanced chemical reaction is: