solve p*(-y) + (1-p)*b*(x+y) = 0 for b