Answer:
a)
m
b)
J
Explanation:
a)
Consider the motion of the block between equilibrium point and the point where it comes to a stop
= initial Kinetic energy of the block at equilibrium position = 20.7 J
= spring constant of the spring = 432 Nm⁻¹
= frictional force acting on the block = 24 N
= stretch in the spring caused before it stops
Using conservation of energy at initial equilibrium point and stopping point
Kinetic energy at equilibrium position = Spring energy at the stopping point + magnitude of work done by frictional force

inserting the values

m
b)
Consider the motion of the block between equilibrium point and the same point when it returns
= initial Kinetic energy of the block at equilibrium position = 20.7 J
= final Kinetic energy of the block at equilibrium position while returning
= frictional force acting on the block = 24 N
= distance traveled by the block =
= 
Using conservation of energy at initial equilibrium point and stopping point
Kinetic energy at equilibrium position = Kinetic energy at equilibrium while returning + magnitude of work done by frictional force

inserting the values
J