Given:
P(A)=probability of A coming in time = 3/7
P(B)=Probability of B coming in time = 5/7
Probability of only one of them coming to the school in time = P(A∩¬B) + P(¬A∩B)
= P(A)P(¬B) + P(¬A)P(B)
= (3/7)(1 - 5/7) + (1 - 3/7)(5/7)
= (3/7)(2/7) + (4/7)(5/7)
= 6/49 + 20/49
= 26/49
Advantage of coming to school in time: Not missing the morning prayers and/or missing any topic in the first period of class.