A body of mass M1 collides elastically with another body of mass M2 at rest. There is maximum transfer of energy when