The free-fall result v=−gt is v=v0+at with v0=0; it holds only for a body released from rest. Here the ball starts with a downward velocity, so with upward positive v0=−5 m s−1 and a=−g:
v=v0+at=−5−gt=−(5+gt)
After 2 s: v=−(5+10×2)=−25 m s−1, so the speed is 25 m s−1 (downward). The student's formula would give 20 m s−1, missing the initial 5 m s−1.