Initially sliding with a speed of 2.3 , a 1.7 block collides with a spring and compresses it 0.26 before coming to rest.What is the force constant of the spring?

(1/2) k X^2 = (1/2) M V^2

X is the compression. You need to included dimensions with your numbers.

What you want to solve for is k.