( Fats ( ( are ( ( composed ( of ( the ( same ( three elements ) ) ) ) ) ( as ( carbohydrates-carbon ( , ( ( hydrogen and ) oxygen ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNP Fats)) (VP (VBP are) (VP (VBN composed) (PP (IN of) (NP (DT the) (JJ same) (CD three) (NNS elements))) (PP (IN as) (NP (NN carbohydrates-carbon) (, ,) (NN hydrogen) (CC and) (NN oxygen))))) (. .)))
Fats are composed  of the same three elements as carbohydrates-carbon, hydrogen and oxygen.
(ROOT (S (NP (NNP Carbohydrate)) (VP (VBZ contains) (NP (NN carbon) (, ,) (NN hydrogen) (, ,) (CC and) (NN oxygen)) (PP (IN in) (NP (NP (DT a) (NN ratio)) (PP (IN of) (NP (CD 1:2:1)))))) (. .)))