Basic probability rules and models

5

2 votes
independent, sum rule, union, complement, mutually exclusive, Very-Easy, Mathematics, intersection, Probability and Statistics, Probability
Problem

Mike wants to go fishing this weekend to nearby lake. His neighbour Alice (is the one Mike was hoping to ask out since long time) is also planing to go to the same spot for fishing this weekend. The probability that it will rain this weekend is p1. There are two possible ways to reach the fishing spot (bus or train). The probability that Mike will take the bus is pmb and that Alice will take the bus is pab. Travel plans of both are independent of each other and rain.

What is the probability prs that Mike and Alice meet each other only (should not meet in bus or train) in a romantic setup (on a lake in rain)?

Input constraints

(0p11), (0pab1), (0pmb1)

Input format

FIrst line: pmb

Second line: pab

Third line: p1

Output format

prs, rounded up to six decimal places.

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

.

Editor Image

?