sentence1: Tommy realized perfectly that in his own wits lay the only chance of escape, and behind his casual manner he was racking his brains furiously.
sentence2: Tommy was keeping a calm demeanor, though his mind was racing wiht thoughts of escaping.