The ammonia gas that is formed is liberated from the solution and moves out of the digestion flask and into the receiving flask - which contains an excess of boric acid.The low pH of the solution in the receiving flask converts the ammonia gas into the ammonium ion,and simultaneously converts the boric acid to the borate ion: