X and Y are two events. The probability of X or Y is 0.7 and…