Answer:
The velocity of block B when the energy stored in the spring bumpers is max = 2.5m/s
Explanation:
An head on collision is aka elastic collision and in elastic collision momentum and energy is conserved that is the total momentum before collision = total momentum after collision
Given
Mass of block A mA = 3kg, initial Velocity of block A vA1 = 5m/s, Final velocity = vA2
Mass of block B mB = 9kg, Initial velocity of block B vB1 = 0m/s, Final velocity = vB2
Therefore we have the equation
1)mAvA1 + mBvB1 = mAvA2 + mBvB2
Also in elastic collision between 2 objects, the relative velocities before and after the collision have the same magnitude but opposite direction
vA1 - vB1 = vB2 - vA2
vA2 = vB2 - vA1 when vB1 = 0
Substitute into the equation we have
(3*5)+(9*0) = 3*(vB2-vA1) + (9*vB2)
15 = 3vB2 - 3vA1 +9vB2
15=3vB2 - (3*5) + 9vB2
15+15 = 12vB2
vB2 = 2.5m/s