Two friends have any one of the 366 days on the year 1984 as her birthday. [Year 1984 is a leap year]
Total number of outcomes in which two friends may have their birthday = 366 x 366
Two friends may have same birthday on any one of the 366 Days Of The Year 1984.
Number of favourable outcomes in which Two friends will have same birthday = 366
Probability = Number of favourable outcomes/Total number of outcomes.
Probability that both have same birthday = 366/(366 x 366) = 1/366.
Hence,the probability that they both have the same birthday = 1/366.