Step-by-step explanation:
So, it is a question of Arithmetic Progression.
Answer attached...
Hope it helps :)
40 because 3+6+12 = 21 and 8+11+21 =40