Answer:
vf 2 = vi 2 + 2ad
vf is the speed after collision in your case it's 0. vi is initial speed, a is constant acceleration (in your case it's negative), and d is distance traveled with the acceleration a. Thus we have.
a =vi 2/2d
So the force is
F = ma = mvi 2/2d