The apple is in free fall, therefore we can use the kinematic equations, especifically the which one that relate final speed to acceleration of gravity and time:
The initial speed is zero, since falls out of the tree and recall that . So, Rewriting for final speed: