We know $S=ut+1/2at^2$. Now, let's say my initial velocity is $u=10\text { m/s}$ and acceleration $a=5\text{ m/s}^2$.
In first second distance traveled $S^{t=1}=10\text { m}$ as my speed is $10\text{ m/s}$ and time is $1 \text{ s}$.
In next second my speed will be $15m/s$ as $a=5m/s^2$and distance travelled will be $S^{_t=2}=S^{_t=1} + 15=25m$ as distance traveled in 2nd second is $15m$.
Now when I apply the same case in equation $S=ut+1/2at^2$ where $u=10m/s$, $a=5m/s^2$ and $t=2s$ I get $S=30m$
Where Iam I getting wrong?