A body is projected vertically upwards with velocity of 40m/s. Calculate the time flight. Take g=10ms^-2

v = 40-10t

so what's t when v=0?