When Barney is forced to pick sides in a fight between Robin and his mother, Lily coaches him on how not to ruin his relationship. Meanwhile, Ted and Marshall get into a dispute over wedding gifts and thank-you notes.