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)))))) (. .)))
Two people were directed to a metal detector after setting off the alarm.
( ( Two people ) ( ( were ( ( directed ( to ( a ( metal detector ) ) ) ) ( after ( ( setting off ) ( the alarm ) ) ) ) ) . ) )
(ROOT (S (NP (CD Two) (NNS people)) (VP (VBD were) (VP (VBN directed) (PP (TO to) (NP (DT a) (NN metal) (NN detector))) (PP (IN after) (S (VP (VBG setting) (PRT (RP off)) (NP (DT the) (NN alarm))))))) (. .)))