According to your grammar, a prepositional phrase (pp
) consists of a preposition (p
) followed by a noun phrase (np
). But your parse tree shows pp
s consisting only of a preposition ("to" and "from"). If you do the bottom-up parse with this in mind, you should arrive at the correct answer.
To answer your direct question, your grammar does not allow s
to consist of two s
s; only of a noun phrase (np
) followed by a verb phrase (vp
).