For the exact answer, this is what you would have to do:
First, calculate time to reach max height:
Tmaxheight = Viy/g = 20/10 = 2 seconds
This is the time it takes for the first half of parabolic motion. Since parabolic motion is symmetric, the second half also takes 2 seconds.
2 seconds + 2 seconds = 4 seconds (to return back to 25m above ground)
So at 4 seconds, it is 25m above the ground. Now you have to calculate how long it will take to fall.
Use this formula: x = Vit + 1/2at^2
At 4 seconds, the ball is going 20m/s downwards (2s x g), so:
25 = 20t + 1/2gt^2
Solve for t with the quadratic formula:
t^2 + 4t - 5 = 0
t = 1 or -5
Time can only be positive, so t = 1
So the answer is: 2 seconds + 2 seconds + 1 seconds = 5 seconds