I think he's saying is that if you add up the amount you've put in the pot before you fold, it's $162 in the first example ($12 preflop and $150 at the flop), and only $40 in the second example (all pre-flop).
While I like the way the author does these examples, I think it would be a mistake to raise to $150 at the flop in the first hand and then fold facing a shove. Considering the pot is huge at that point, and nobody reraised pre-flop making it less likely they have JJ/QQ/AK, I would shove over the raise to $60 with how much is already in the middle.