Time of flight only depends on the vertical component of velocity.
Initial vertical velocity uy=20sin37∘=20×35=12 m/s (taking upward direction as positive)
Displacement of the body when it reaches the ground h=−32 m
Using the second equation of motion,
h=uyt−12gt2
⇒−32=12t−5t2
⇒5t2−12t−32=0
⇒5t2−20t+8t−32=0
⇒5t(t−4)+8(t−4)=0
⇒(5t+8)(t−4)=0
⇒t=4 (since time cannot be negative)
Hence the time of flight is 4 s.