Domanda di colloquio di Google

A question regarding marginal & conditional probability.