Use the formula 1 + 3 + 5 + 7 + . . . + (2n-1) =. In your case 1 + 3 + 5 + 7 + . . . + 39 = , 1 + 3 + 5 + 7 + . . . + 19 = , so the difference = = 400 - 100 = 300. It is exactly the sum 21 + 23 + . . . + 39, and it is your answer.
This is an AP. Use the formula for the finite sum of the terms of an AP.