An arrow is projected by a bow vertically up with a velocity of 40 m/s, and reaches a target in 3 s. What is the velocity of the arrow just before it hits the target? How high is the target located?