OP said 50 cm, not 50 m.
Use v_y = 3 m/s (vertical), distance = .5 m, a_g = -10 m/s^2 and think of throwing a baseball straight up.
Use y = y_initial + v_y * t + 1/2 * a * t^2. Where y_initial = 0 (assume you throw the baseball up from ground level).