Given information,
u=10m/s
v=20m/s
t=2s
v=u + at
20=10+2a
20-10=2a
10=2a
a=5 m/s2
The acceleration of the body is 5m/s2

Given information,
u=10m/s
v=20m/s
t=2s
v=u + at
20=10+2a
20-10=2a
10=2a
a=5 m/s2
The acceleration of the body is 5m/s2