If we consider point A as one end of a tube of flow that begins at the top surface of the water, and point B as the other end of the tube of flow, we can apply Bernoulli's equation to solve for the velocity at point B. At points A and B, the pressure is atmospheric pressure, so PA = PB, and Bernoulli's equation becomes:
(1/2) VA2 + g YA = (1/2) VB2 + g YB .
The density cancells in the equation, and if the tank is very large, the velocity at point A is essentially zero (since the water level changes only slowly there). Thus we can solve for VB:
VB = sqrt(2g(YA - YB)) ,
where
YA - YB
is the height above the efflux tube, which is 5 m in our case.