Logic Q - Probability

Hi! Could someone explain how to get this! Thanks :))