(a) 1.43 m/s
We can solve this problem by using the law of conservation of energy.
The initial total energy stored in the spring-mass system is

where
k = 7.91 N/m is the spring constant

Substituting,

The final kinetic energy of the ball is equal to the energy released by the spring + the work done by friction:

where
is the kinetic energy of the ball, with
being the mass of the ball
v being the final speed
is the work done by friction (which is negative since the force of friction is opposite to the motion), where
is force of friction
d = 14.5 cm = 0.145 m is the displacement
Substituting,

So, the kinetic energy of the ball as it leaves the cannon is

And so the final speed is

(b) +5.08 cm
The speed of the ball is maximum at the instant when all the elastic potential energy stored in the spring has been released: in fact, after that moment, the spring does no longer release any more energy, so the kinetic energy of the ball from that moment will start to decrease, due to the effect of the work done by friction.
The elastic potential energy of the spring is

And this has all been released when it becomes zero, so when x = 0 (equilibrium position of the spring). However, the spring was initially compressed by 5.08 cm, so the ball has maximum speed when
x = +5.08 cm
with respect to the initial point.
(c) 1.78 m/s
The maximum speed is the speed of the ball at the moment when the kinetic energy is maximum, i.e. when all the elastic potential energy has been released.
As we calculated in part (a), the total energy released by the spring is
E = 0.0102 J
The work done by friction here is just the work done to cover the distance of
d = 5.08 cm = 0.0508 m
Therefore

So, the kinetic energy of the ball at the point of maximum speed is

And so the final speed is
