A mass \( m \) is connected to a massless spring of spring constant \( k \), which is fixed to a wall. Another mass \( 2m \), having kinetic energy \( E \), collides collinearly with the mass \( m \) completely inelastically (see figure). The entire setup is placed on a frictionless floor. The maximum compression of the spring is: 