40 if another logic is applied as

1+4=5

2+5=7->7+5=12

3+6=9->9+12=21

8+11=19->19+21=40 only if we ignore middle sequential increases which is incorrect way but can be answer