Both set off the alarm, and they were directed to a second metal detector.
( ( ( ( ( Both ( ( set off ) ( the alarm ) ) ) , ) and ) ( they ( were ( directed ( to ( a ( second ( metal detector ) ) ) ) ) ) ) ) . )
(ROOT (S (S (NP (DT Both)) (VP (VBD set) (PRT (RP off)) (NP (DT the) (NN alarm)))) (, ,) (CC and) (S (NP (PRP they)) (VP (VBD were) (VP (VBN directed) (PP (TO to) (NP (DT a) (JJ second) (NN metal) (NN detector)))))) (. .)))
The alarm was set off by metal in their personal belongings.
( ( The alarm ) ( ( was ( ( ( set off ) ( by metal ) ) ( in ( their ( personal belongings ) ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NN alarm)) (VP (VBD was) (VP (VBN set) (PRT (RP off)) (PP (IN by) (NP (NN metal))) (PP (IN in) (NP (PRP$ their) (JJ personal) (NNS belongings))))) (. .)))