19. Conditional Probability Formula

Easy

From probabilities rather than counts:

P(A∣B)=P(A∩B)P(B),P(B)>0P(A \mid B) = \frac{P(A \cap B)}{P(B)}, \qquad P(B) > 0

Return P(A∣B)P(A \mid B).

Input

p_both = 0.3333333333333333
p_b = 0.5

Output

0.6666666666666666
Implement solve(...)