Divide both sides by m: g*h = 0.5V^2 V^2 = 2gh V = sqrt(2g*h.
You can ask a new question or answer this question.