$p=\frac{z(x+y+q)-xy}{z+q},$