Answer:
(a) Amplitude of the motion is 0.184 m.
(b) 0.285 of the original kinetic energy appears as the mechanical energy in the harmonic oscillation.
Explanation:
(a) First we will use the conservation of linear momentum to find the velocity of the combined objects.

Before the collision, the spring is in equilibrium, so it is stretched by the amount of x.

Just after the collision, the motion starts from this position.
The simple harmonic motion equation is

ω is the angular frequency, and given as

Φ is the phase angle and can be found by the initial conditions.
At t = 0 (Just after the collision);

(b) The original kinetic energy is

The mechanical energy of the simple harmonic motion is

So 0.285 of the original kinetic energy appears as the mechanical energy in the harmonic oscillation. The rest of the original energy is converted to heat during the collision.