( ( ( The speed ) ( of sound ) ) ( ( depends ( upon ( ( the type ) ( of ( ( medium and ) ( its state ) ) ) ) ) ) . ) )
(ROOT (S (NP (NP (DT The) (NN speed)) (PP (IN of) (NP (NN sound)))) (VP (VBZ depends) (PP (IN upon) (NP (NP (DT the) (NN type)) (PP (IN of) (NP (NP (NN medium)) (CC and) (NP (PRP$ its) (NN state))))))) (. .)))
The speed of sound depends upon the type of medium and its state.
(ROOT (S (NP (NP (DT The) (NN speed)) (PP (IN of) (NP (NN sound)))) (VP (VBZ depends) (PP (IN on) (NP (NN medium)))) (. .)))
The speed of sound depends on medium.