Are these your two equations (what you have is a little difficult to read and I don't know if what I have here is any better). Also, we have and - are these the same or different?
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