the answer of each one and plus the next

6+6+2=14

14+7+1=24

24+11+5=40