Solve the all parts of following question:
Question: A block of mass 1.3 kg is attached to a horizontal spring that has a force constant 1200 N/m. The spring is compressed 2.0 cm and is then released from rest.
Part A: A constant friction force of 3.3 N retards the block's motion from the moment it is released. How much is the spring compressed when the speed of the block is a maximum?
Part B: What is the maximum speed?
I need help to find how much the spring is compressed when the speed of the block is a maximum.