Answer
Acids: $HCOOH$ and $HP{O_4}^{2-}$
Bases: ${PO_4}^{3-}$ and $HCOO^-$
Work Step by Step
$HCOOH$ and $HP{O_4}^{2-}$ are acids because they give one proton $H^+$ in the reaction.
${PO_4}^{3-}$ and $HCOO^-$ are bases because they receive these protons.