

Given, Savita and Hamida are friends.
Now P(Both will have different birthdays) = P(Both will not have same birthdays)
=> P(Both will have different birthdays) = 1 - P(Both will have same birthdays)
=> P(Both will have different birthdays) = 1 - 1/365
=> P(Both will have different birthdays) = (365 - 1)/365
=> P(Both will have different birthdays) = 364/365
So, the probability that Savita and Hamida have different birthdays = 364/365
