400

Since the numbers are in a series (namely odd numbers below 40), a quick solution is

(1 + 39) x 20 / 2 = 400

(1 + 39) x 20 / 2 = 400