Solve the following equation for v: S = (-1/2)gt2 + vt

I think you meant to say,

S = (-1/2)gt^2 + vt
times 2
2S = -gt^2 + 2vt
25+gt^2 = 2vt
divide by 2t
v = (25 + gt^2)/(2t)