Hi there!
Impulse = Change in momentum
I = Δp = mΔv = m(vf - vi)
Where:
m = mass of object (kg)
vf = final velocity (m/s)
vi = initial velocity (m/s)
Begin by converting grams to kilograms:
1 kg = 1000g ⇒ 145g = .145kg
Now, plug in the given values. Remember to assign directions since velocity is a vector. Let the initial direction be positive and the opposite be negative.
I = (.145)(-20 - 17) = -5.365 Ns
The magnitude is the absolute value, so:
|-5.365| = 5.365 Ns