Conditioning on BBB makes BBB the new sample space. For equally likely outcomes:
Return P(A∣B)P(A \mid B)P(A∣B) as a float. Assume b is non-empty.
b
Input
a = {2, 4, 6} b = {4, 5, 6}
Output
0.6666666666666666
solve(...)