From probabilities rather than counts:
Return P(A∣B)P(A \mid B)P(A∣B).
Input
p_both = 0.3333333333333333 p_b = 0.5
Output
0.6666666666666666
solve(...)