A fair coin is tossed three times. Find the probability of getting two heads and…