Hi there!
We know that:
I = Δp = mΔv = m(vf - vi)
Let the positive direction be towards the wall. Plug in the given values:
Δp = 0.4(-25 - 12) = -14.8 Ns
Δp = Ft, so:
Δp/t = F
-14.8/0.05 = -296 N (depending on which direction you assign positive/negative, the answer would be positive/negative)