( ( Both ( ( ( a liquid ) and ) ( a gas ) ) ) ( ( take ( ( the shape ) ( of ( their containers ) ) ) ) . ) )
(ROOT (S (NP (DT Both) (NP (DT a) (NN liquid)) (CC and) (NP (DT a) (NN gas))) (VP (VBP take) (NP (NP (DT the) (NN shape)) (PP (IN of) (NP (PRP$ their) (NNS containers))))) (. .)))
Both a liquid and a gas take the shape of their containers.
(ROOT (S (NP (DT A) (NN gas)) (VP (VBZ assumes) (NP (NP (DT the) (NN shape)) (PP (IN of) (NP (PRP$ its) (NN container))))) (. .)))