Break down (NH4)2HPO4. Each of the NH4 have a charge of +1 and HPO4 has a charge of -2. If you look at the right side of the equation, the NH4+ is still there. One of the HPO4's is now H2PO4 and H2O is now -OH. H2O donated a proton (acid) to HPO4 (base).