Solution (source code)

= Solution

The missing kinetic contribution is \b[$\tfrac12m_b\dot y_b^2$]. Both atoms contribute independent translational kinetic energy before the coordinates are changed.