In calculus, neglecting air resistance, the formula for range is R = v(0)^2 sin 2A/g, where v(0) is the initial speed, A is the angle, and g is the acceleration of gravity. Here v(0) = 20 m/s, and g is a constant.
R = 400 sin 2A
For maximum range, sin 2A = 1, so 2A= 90°, and A= 45
45 degrees is my answer.