Ok, I am not sure how to about about solving this problem and have been staring at it and drawing pictures for several hours now. Do I use the spring equation for potential energy? Or is it a momentum problem where I should assume the spring has it's own velocity? Any help is MUCH appreciated!

Here's the problem:
A spring has it's right end fixed and is installed on a horizontal table so that the free end, in equilibrium, is at x=3.00 m. A 1.65 block coming from the left side slides along the table. When it passes the origin, it is moving at 5.58m/s. It strikes the spring, compresses it momentarily, and then is sent back toward the left, where it eventually comes to rest at the point x=1.50 m. The coefficient of kinetic friction between the block and the table is 0.300. By what distance was the spring compressed?

To solve this problem, you need to use the principles of conservation of mechanical energy and the work-energy theorem.

Let's break down the problem step by step:

1. First, determine the initial kinetic energy of the block as it approaches the spring. The kinetic energy is given by the equation KE = (1/2)mv^2, where m is the mass of the block and v is its velocity.

2. Next, calculate the work done by friction on the block as it slides along the table. The work done by friction is given by the equation W = μmgd, where μ is the coefficient of kinetic friction, m is the mass of the block, g is the acceleration due to gravity, and d is the distance traveled by the block.

3. Subtract the work done by friction from the initial kinetic energy to find the initial mechanical energy of the block before it strikes the spring.

4. Use the principle of conservation of mechanical energy to determine the final mechanical energy of the block when it comes to rest. The final mechanical energy is equal to the initial mechanical energy.

5. The final mechanical energy consists of the potential energy stored in the compressed spring and the work done by friction during the compression. Use the equation PE = (1/2)kx^2 to calculate the potential energy of the spring, where k is the spring constant and x is the distance the spring was compressed.

6. Subtract the work done by friction during compression from the final mechanical energy to find the potential energy of the compressed spring.

7. Equate the potential energy to the initial mechanical energy and solve for x (the distance the spring was compressed).

So, in summary:
1. Calculate the initial kinetic energy of the block.
2. Calculate the work done by friction.
3. Calculate the initial mechanical energy of the block.
4. Calculate the final mechanical energy of the block.
5. Calculate the potential energy of the compressed spring.
6. Solve for the distance x.

By following these steps, you should be able to determine the distance by which the spring was compressed.