Lets start with the English sentence He ate a red apple on the sofa.
S / \ / \ NP VP | | [He] [ate a red apple on the sofa]
The verb phrase can branch out even further. Because he contains no additional branching, only apple's branching will be shown here.
The VP is divided into a V, an NP and a PP
VP /|\ / | \ / | \ / | \ / | \ / | \ / | \ / | \ | | | [ate][a red apple][on the sofa]
NP / | \ / | \ / | \ Det Adj N | | | [a][red][apple]
PP is divided into a P and a NP
PP / \ P NP | | [on][the sofa]
All together it is like this:
VP / | \ | \____ NP \ / \ PP Det N / \ P NP | / \ On Det N | | the sofa