accelerates at 2 ms^−2 for 10 s and then goes for constant speed for 30 s and then deceleration at 4 ms^−2 till it stops after next. What is the distance travelled by it?