The velocity of center of mass of system of blocks A,B & C is :
Since, the velocity of all the blocks is the same at maximum compression.
Apply conservation of momentum, just before the collision and at the time of compression, it is given as,
mv0+2mv0=5m×v
v=3v05
Thus, the velocity of the center of mass of the system of blocks A, B and C is 3v05.