A 5.0g pellet is fired horizontally into a 1.0kg wooden block suspended from two light strings so that it can swing like a pendulum. The pellet embeds in the block, and the combined system subsequently rises to a vertical height of 0.040m before momentarily coming to rest. What was the speed of the pellet just before impact?
a) 222m/s
b) 89m/s
c) 178m/s
d) 126m/s