Answer :

[tex]xp+yp=z\\\\p(x+y)=z \\\\\ \boxed{p=\frac{z}{x+y}}[/tex]