When a perfect girl finally shows up, the gang tries everything to help Ted, while Marshall takes action when he discovers a letter written by younger himself.