Spoiler 40? Because each of previous result is added to the two numbers to get an aggregate sum. 5+2+5=12, 12+3+6=21 so next logical answer is 21+8+11=40
Good sound explanation as to how logically you thought and arrived at the one of the results. God Bless.