Vertcal component of velocity: 20Sin(30)
Rearrange suvat equation for t in terms of u, a, s
t is the time in the air and is what we want, u is 20sin(30), a is -9.81 (negative since gravity pulls the ball downwards) s is 0 since the total displacement vertically when it lands is 0.
Multiply t by 20cos(30) to find the range. This is because for a projectile, the horizontal component of velocity is constant in the absence of air resistance.