Barney faces having to wear Marshall’s ducky tie if he loses a bet with him. Meanwhile, Ted hopes to apologize to an ex for cheating on her.