Answer:
Part A
Newton
Part B
Joules
Part C

Part D

Step-by-step explanation:
Part A
Force in a spring is equal to the product of spring constant and displacement
Thus,

Newton
Part B
Work done to compress the spring

Part C
Given that velocity of cart A becomes three time the velocity of cart B
As per the conservation of momentum equation

Part D
![(1)/(2) kx^2\\= \frac{1}{2 m_Av_A^2 + \frac{1}{2 m_Bv_B^2\\]()
Substituting the given values we get
