Y=(a-b*r1-c*P1)*(m-1+(1+r1)^(T-1)*(p1^T+(1-l0)*(1-p1^T)))/(1+r3)^T

Z=(a-b*r2-c*P1)*(m-1+(1+r2)^(T-1)*(p1^T+(1-l0)*(1-p1^T)))/(1+r3)^T

Y=Z,then p1=?

I wanna find the value of p1 in terms of other variable..may be you can use mathematica software or maple since it involved a lot of variables.thank you