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.
( ( ( ( ( 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 ) ) ) ) ) . )
(ROOT (S (S (NP (NNP Tommy)) (VP (VBD realized) (ADVP (RB perfectly)) (SBAR (IN that) (S (PP (IN in) (NP (PRP$ his) (JJ own) (NNS wits))) (VP (VBD lay) (NP (NP (DT the) (JJ only) (NN chance)) (PP (IN of) (NP (NN escape))))))))) (, ,) (CC and) (S (PP (IN behind) (NP (PRP$ his) (JJ casual) (NN manner))) (NP (PRP he)) (VP (VBD was) (VP (VBG racking) (NP (PRP$ his) (NNS brains)) (ADVP (RB furiously))))) (. .)))
Tommy was the only one who could figure out how to escape, but he could only save himself.
( ( ( ( ( Tommy ( was ( ( the ( only one ) ) ( who ( could ( ( figure out ) ( how ( to escape ) ) ) ) ) ) ) ) , ) but ) ( he ( ( could only ) ( save himself ) ) ) ) . )
(ROOT (S (S (NP (NNP Tommy)) (VP (VBD was) (NP (NP (DT the) (JJ only) (NN one)) (SBAR (WHNP (WP who)) (S (VP (MD could) (VP (VB figure) (PRT (RP out)) (SBAR (WHADVP (WRB how)) (S (VP (TO to) (VP (VB escape)))))))))))) (, ,) (CC but) (S (NP (PRP he)) (VP (MD could) (ADVP (RB only)) (VP (VB save) (NP (PRP himself))))) (. .)))