From the conservation of energy:
Height of an arrow:
The speed covered by the rocket when its 3m above the ground: