Dear Student,
Let assume initial velocity is u and constant acceleration a.
using s=ut+ 0.5 at2
For first 5 second
10=5 u + 0.5 x a x 25..........(1)
for next 3 seconds t=8 and s=20
20=8 u + 0.5 x a x 64...........(2)
Solving 1 and 2 , we get,
a=1/3 and u=7/6
Now for next 2 seconds t=10 and s'
S'=10 x 7/6 + 0.5 x(1/3) x 100
S'=170/6
Now distance travelled in 2 sec=(170/6)-20=50/6 meter
Regards