Take the origin at the point where the ball is kicked, vertically upward as the y-axis and the horizontal in the plane of motion as the x-axis. The initial velocity has the components:
ux=(20 m/s) cos 45∘=10√2 m/sand uy =(20 m/s) sin 45∘=10√2 m/s.When the ball reaches the ground,y=0.using y=uyt−12 gt2,0=(10√2 m/s)t−12×(10 m/s2)×t2Or,t=2√2 s=2.8 s.