Coding for Gaussian Two-Way Channels: Linear and Learning-Based Approaches